Browse Source

Fix bootstrapper test

pull/68/head
James Jackson-South 9 years ago
parent
commit
93278fa2ae
  1. 21
      tests/ImageSharp.Tests/BootstrapperTests.cs

21
tests/ImageSharp.Tests/BootstrapperTests.cs

@ -133,26 +133,13 @@ namespace ImageSharp.Tests
{
TestFormat format = new TestFormat();
var exception = Assert.Throws<ArgumentException>(() =>
{
Bootstrapper.Default.AddImageFormat(format);
});
Assert.Contains("format with the same", exception.Message);
format.Extension = "test";
exception = Assert.Throws<ArgumentException>(() =>
{
Bootstrapper.Default.AddImageFormat(format);
});
var exception = Assert.Throws<ArgumentException>(() =>
{
Bootstrapper.Default.AddImageFormat(format);
});
Assert.Contains("should contain", exception.Message);
format.SupportedExtensions = new string[] { "test", "jpg" };
exception = Assert.Throws<ArgumentException>(() =>
{
Bootstrapper.Default.AddImageFormat(format);
});
Assert.Contains("supports the same", exception.Message);
format.SupportedExtensions = new string[] { "test", "" };
exception = Assert.Throws<ArgumentException>(() =>
{

Loading…
Cancel
Save