Browse Source

Fix tests after update of SharedInfrastructure

pull/2312/head
Stefan Nikolei 3 years ago
parent
commit
89212131ce
  1. 6
      tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.Generic.cs
  2. 4
      tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.NonGeneric.cs

6
tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.Generic.cs

@ -38,7 +38,7 @@ public abstract partial class ImageFrameCollectionTests
using ImageFrame<Rgba32> addedFrame = this.Collection.AddFrame((ImageFrame<Rgba32>)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<Rgba32> 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<Rgba32> 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]

4
tests/ImageSharp.Tests/Image/ImageFrameCollectionTests.NonGeneric.cs

@ -77,7 +77,7 @@ public abstract partial class ImageFrameCollectionTests
ArgumentNullException ex = Assert.Throws<ArgumentNullException>(
() => 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<ArgumentNullException>(
() => 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]

Loading…
Cancel
Save