diff --git a/tests/ImageProcessorCore.Tests/Image/ImagePropertyTests.cs b/tests/ImageProcessorCore.Tests/Image/ImagePropertyTests.cs index edd3479af..5a82f139d 100644 --- a/tests/ImageProcessorCore.Tests/Image/ImagePropertyTests.cs +++ b/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(ex); + Assert.Throws(() => new ImageProperty(null, "Foo")); - ex = Record.Exception(() => new ImageProperty(string.Empty, "Foo")); - Assert.IsType(ex); + Assert.Throws(() => new ImageProperty(string.Empty, "Foo")); } ///