diff --git a/Ghost.Core/Result.cs b/Ghost.Core/Result.cs index 9f7428d..7db37c0 100644 --- a/Ghost.Core/Result.cs +++ b/Ghost.Core/Result.cs @@ -178,7 +178,7 @@ public static class ResultExtensions public static T GetValueOrThrow(this Result result, S expect) where S : Enum { - if (result.Status?.Equals(expect) ?? false) + if (!EqualityComparer.Default.Equals(result.Status, expect)) { throw new InvalidOperationException($"Operation failed: expected status {expect}, but got {result.Status}"); } diff --git a/Ghost.Graphics.Test/Ghost.Graphics.Test.csproj b/Ghost.Graphics.Test/Ghost.Graphics.Test.csproj index b85c415..7c904f9 100644 --- a/Ghost.Graphics.Test/Ghost.Graphics.Test.csproj +++ b/Ghost.Graphics.Test/Ghost.Graphics.Test.csproj @@ -57,18 +57,6 @@ - - - - MSBuild:Compile - - - - - - MSBuild:Compile - -