Browse Source

resolve linux vs windows newline issues

pull/299/head
Scott Williams 9 years ago
parent
commit
ca8e628fd1
  1. 14
      tests/ImageSharp.Tests/Image/ImageFramesCollectionTests.cs

14
tests/ImageSharp.Tests/Image/ImageFramesCollectionTests.cs

@ -26,7 +26,7 @@ namespace SixLabors.ImageSharp.Tests
collection.Add(new ImageFrame<Rgba32>(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<Rgba32>(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<Rgba32>(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]

Loading…
Cancel
Save