Browse Source

Changed throw asserts.

Former-commit-id: 85e3d74449bb2b1e4da0c0e523b1449be5f0be08
Former-commit-id: 7a12c94c42fd9dfac0fde12d816170c2de1390e6
Former-commit-id: 4014fcf534e4d21080101ae158bc86c27f2342cc
pull/1/head
dirk 10 years ago
parent
commit
347b81bf65
  1. 6
      tests/ImageProcessorCore.Tests/Image/ImagePropertyTests.cs

6
tests/ImageProcessorCore.Tests/Image/ImagePropertyTests.cs

@ -56,11 +56,9 @@ namespace ImageProcessorCore.Tests
[Fact]
public void ConstructorThrowsWhenNameIsNullOrEmpty()
{
Exception ex = Record.Exception(() => new ImageProperty(null, "Foo"));
Assert.IsType<ArgumentNullException>(ex);
Assert.Throws<ArgumentNullException>(() => new ImageProperty(null, "Foo"));
ex = Record.Exception(() => new ImageProperty(string.Empty, "Foo"));
Assert.IsType<ArgumentException>(ex);
Assert.Throws<ArgumentException>(() => new ImageProperty(string.Empty, "Foo"));
}
/// <summary>

Loading…
Cancel
Save