From 347b81bf65b2df9776e615463b7219f8ff053d99 Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 9 Aug 2016 20:54:02 +0200 Subject: [PATCH] Changed throw asserts. Former-commit-id: 85e3d74449bb2b1e4da0c0e523b1449be5f0be08 Former-commit-id: 7a12c94c42fd9dfac0fde12d816170c2de1390e6 Former-commit-id: 4014fcf534e4d21080101ae158bc86c27f2342cc --- tests/ImageProcessorCore.Tests/Image/ImagePropertyTests.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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")); } ///