From 895746d428ac0e47290b1c4d47e13bed04ac8691 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 12 Nov 2023 14:56:40 +0100 Subject: [PATCH] Removed test for absolute properties. --- .../TheDisposeMethod.cs | 1 - .../MagickImageTests/TheFormatInfoProperty.cs | 24 --------------- .../MagickImageTests/TheIsDisposedProperty.cs | 30 ------------------- 3 files changed, 55 deletions(-) delete mode 100644 tests/Magick.NET.Tests/MagickImageTests/TheFormatInfoProperty.cs delete mode 100644 tests/Magick.NET.Tests/MagickImageTests/TheIsDisposedProperty.cs diff --git a/tests/Magick.NET.Tests/MagickImageCollectionTests/TheDisposeMethod.cs b/tests/Magick.NET.Tests/MagickImageCollectionTests/TheDisposeMethod.cs index aea59afe4b..ebad21f4ad 100644 --- a/tests/Magick.NET.Tests/MagickImageCollectionTests/TheDisposeMethod.cs +++ b/tests/Magick.NET.Tests/MagickImageCollectionTests/TheDisposeMethod.cs @@ -21,7 +21,6 @@ public void ShouldRemoveAndDisposeTheImages() collection.Dispose(); Assert.Empty(collection); - Assert.True(image.IsDisposed); } [Fact] diff --git a/tests/Magick.NET.Tests/MagickImageTests/TheFormatInfoProperty.cs b/tests/Magick.NET.Tests/MagickImageTests/TheFormatInfoProperty.cs deleted file mode 100644 index 99acc5a487..0000000000 --- a/tests/Magick.NET.Tests/MagickImageTests/TheFormatInfoProperty.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. -// Licensed under the Apache License, Version 2.0. - -using ImageMagick; -using Xunit; - -namespace Magick.NET.Tests; - -public partial class MagickImageTests -{ - public class TheFormatInfoProperty - { - [Fact] - public void ShouldReturnTheFormatInformationOfTheImage() - { - using var image = new MagickImage(Files.SnakewarePNG); - var info = image.FormatInfo; - - Assert.NotNull(info); - Assert.Equal(MagickFormat.Png, info.Format); - Assert.Equal("image/png", info.MimeType); - } - } -} diff --git a/tests/Magick.NET.Tests/MagickImageTests/TheIsDisposedProperty.cs b/tests/Magick.NET.Tests/MagickImageTests/TheIsDisposedProperty.cs deleted file mode 100644 index 526e5ede34..0000000000 --- a/tests/Magick.NET.Tests/MagickImageTests/TheIsDisposedProperty.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. -// Licensed under the Apache License, Version 2.0. - -using ImageMagick; -using Xunit; - -namespace Magick.NET.Tests; - -public partial class MagickImageTests -{ - public class TheIsDisposedProperty - { - [Fact] - public void ShouldReturnFalseWhenTheImageIsNotDisposed() - { - using var image = new MagickImage(); - - Assert.False(image.IsDisposed); - } - - [Fact] - public void ShouldReturnTrueWhenTheImageIsDisposed() - { - var image = new MagickImage(); - image.Dispose(); - - Assert.True(image.IsDisposed); - } - } -}