diff --git a/tests/ImageSharp.Tests/BootstrapperTests.cs b/tests/ImageSharp.Tests/BootstrapperTests.cs index 38d2c1150..096b9f0d5 100644 --- a/tests/ImageSharp.Tests/BootstrapperTests.cs +++ b/tests/ImageSharp.Tests/BootstrapperTests.cs @@ -133,26 +133,13 @@ namespace ImageSharp.Tests { TestFormat format = new TestFormat(); - var exception = Assert.Throws(() => - { - Bootstrapper.Default.AddImageFormat(format); - }); - Assert.Contains("format with the same", exception.Message); - format.Extension = "test"; - exception = Assert.Throws(() => - { - Bootstrapper.Default.AddImageFormat(format); - }); + var exception = Assert.Throws(() => + { + Bootstrapper.Default.AddImageFormat(format); + }); Assert.Contains("should contain", exception.Message); - format.SupportedExtensions = new string[] { "test", "jpg" }; - exception = Assert.Throws(() => - { - Bootstrapper.Default.AddImageFormat(format); - }); - Assert.Contains("supports the same", exception.Message); - format.SupportedExtensions = new string[] { "test", "" }; exception = Assert.Throws(() => {