From ca8e628fd1d6d7e2067b92afc469567ffbeca06c Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Tue, 12 Sep 2017 21:54:50 +0100 Subject: [PATCH] resolve linux vs windows newline issues --- .../Image/ImageFramesCollectionTests.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/ImageSharp.Tests/Image/ImageFramesCollectionTests.cs b/tests/ImageSharp.Tests/Image/ImageFramesCollectionTests.cs index acd1eec20..e19d7ddef 100644 --- a/tests/ImageSharp.Tests/Image/ImageFramesCollectionTests.cs +++ b/tests/ImageSharp.Tests/Image/ImageFramesCollectionTests.cs @@ -26,7 +26,7 @@ namespace SixLabors.ImageSharp.Tests collection.Add(new ImageFrame(1, 1)); }); - Assert.Equal("Frame must have the same dimensions as the image.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Frame must have the same dimensions as the image.", ex.Message); } [Fact] @@ -39,7 +39,7 @@ namespace SixLabors.ImageSharp.Tests collection.Add(null); }); - Assert.Equal("Value cannot be null.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Value cannot be null.", ex.Message); } [Fact] @@ -52,7 +52,7 @@ namespace SixLabors.ImageSharp.Tests collection.Insert(1, new ImageFrame(1, 1)); }); - Assert.Equal("Frame must have the same dimensions as the image.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Frame must have the same dimensions as the image.", ex.Message); } [Fact] @@ -65,7 +65,7 @@ namespace SixLabors.ImageSharp.Tests collection.Insert(1, null); }); - Assert.Equal("Value cannot be null.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Value cannot be null.", ex.Message); } [Fact] @@ -78,7 +78,7 @@ namespace SixLabors.ImageSharp.Tests collection[0] = new ImageFrame(1, 1); }); - Assert.Equal("Frame must have the same dimensions as the image.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Frame must have the same dimensions as the image.", ex.Message); } [Fact] @@ -91,7 +91,7 @@ namespace SixLabors.ImageSharp.Tests collection[0] = null; }); - Assert.Equal("Value cannot be null.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Value cannot be null.", ex.Message); } [Fact] @@ -106,7 +106,7 @@ namespace SixLabors.ImageSharp.Tests }); }); - Assert.Equal("Frame must have the same dimensions as the image.\r\nParameter name: frame", ex.Message); + Assert.StartsWith("Frame must have the same dimensions as the image.", ex.Message); } [Fact]