Skip to content

Commit

Permalink
Tests: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Feb 11, 2024
1 parent 508d741 commit 1b9bedf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ internal static partial class FailureTestSource
{
private sealed class SomeException : Exception
{
public static readonly SomeException SomeInstance;

static SomeException()
=>
SomeInstance = new();
internal static SomeException Instance { get; } = new();
}
}
8 changes: 4 additions & 4 deletions src/core-taggeds-failure/Failure.Tests/Source/Source.Equal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public static IEnumerable<object[]> EqualPairTestData
[
new Failure<EnumType>(EnumType.One, null)
{
SourceException = SomeException.SomeInstance
SourceException = SomeException.Instance
},
new Failure<EnumType>(EnumType.One, null)
{
SourceException = SomeException.SomeInstance
SourceException = SomeException.Instance
}
],
[
Expand All @@ -58,11 +58,11 @@ public static IEnumerable<object[]> EqualPairTestData
[
new Failure<EnumType>(EnumType.One, TestData.SomeString)
{
SourceException = SomeException.SomeInstance
SourceException = SomeException.Instance
},
new Failure<EnumType>(EnumType.One, TestData.SomeString)
{
SourceException = SomeException.SomeInstance
SourceException = SomeException.Instance
}
]
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public static IEnumerable<object[]> UnequalPairTestData
[
new Failure<EnumType>(EnumType.One, TestData.SomeString)
{
SourceException = SomeException.SomeInstance
SourceException = SomeException.Instance
},
new Failure<EnumType>(EnumType.One, TestData.UpperSomeString)
{
SourceException = SomeException.SomeInstance
SourceException = SomeException.Instance
}
],
[
Expand Down

0 comments on commit 1b9bedf

Please sign in to comment.