diff --git a/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.Generic.cs b/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.Generic.cs index 5e435ee9bb..fba19065b0 100644 --- a/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.Generic.cs +++ b/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.Generic.cs @@ -38,7 +38,7 @@ public abstract partial class ImageFrameCollectionTests using ImageFrame addedFrame = this.Collection.AddFrame((ImageFrame)null); }); - Assert.StartsWith("Parameter \"frame\" must be not null.", ex.Message); + Assert.StartsWith("Value cannot be null. (Parameter 'frame')", ex.Message); } [Fact] @@ -52,7 +52,7 @@ public abstract partial class ImageFrameCollectionTests using ImageFrame addedFrame = this.Collection.AddFrame(data); }); - Assert.StartsWith("Parameter \"source\" must be not null.", ex.Message); + Assert.StartsWith("Value cannot be null. (Parameter 'source')", ex.Message); } [Fact] @@ -89,7 +89,7 @@ public abstract partial class ImageFrameCollectionTests using ImageFrame insertedFrame = this.Collection.InsertFrame(1, null); }); - Assert.StartsWith("Parameter \"frame\" must be not null.", ex.Message); + Assert.StartsWith("Value cannot be null. (Parameter 'frame')", ex.Message); } [Fact] diff --git a/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.NonGeneric.cs b/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.NonGeneric.cs index 60290a7eda..bc22806c3c 100644 --- a/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.NonGeneric.cs +++ b/tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.NonGeneric.cs @@ -77,7 +77,7 @@ public abstract partial class ImageFrameCollectionTests ArgumentNullException ex = Assert.Throws( () => this.Collection.AddFrame(null)); - Assert.StartsWith("Parameter \"source\" must be not null.", ex.Message); + Assert.StartsWith("Value cannot be null. (Parameter 'source')", ex.Message); } [Fact] @@ -95,7 +95,7 @@ public abstract partial class ImageFrameCollectionTests ArgumentNullException ex = Assert.Throws( () => this.Collection.InsertFrame(1, null)); - Assert.StartsWith("Parameter \"source\" must be not null.", ex.Message); + Assert.StartsWith("Value cannot be null. (Parameter 'source')", ex.Message); } [Fact]