-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from pfpack/release/2.2.0-preview.9_failure-t…
…ests release/2.2.0-preview.9_failure-tests
- Loading branch information
Showing
26 changed files
with
40 additions
and
93 deletions.
There are no files selected for viewing
31 changes: 15 additions & 16 deletions
31
src/core-taggeds-failure/Failure.Tests/AssertHelper/AssertHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
using System; | ||
using Xunit; | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
internal static class AssertHelper | ||
{ | ||
public static void AssertEqualFailures<TFailureCode>( | ||
(TFailureCode FailureCode, string FailureMessage, Exception? SourceException) expected, | ||
(TFailureCode FailureCode, string FailureMessage, Exception? SourceException) actual) | ||
where TFailureCode : struct | ||
{ | ||
Assert.StrictEqual(expected.FailureCode, actual.FailureCode); | ||
Assert.Equal(expected.FailureMessage, actual.FailureMessage); | ||
Assert.Equal(expected.SourceException, actual.SourceException); | ||
} | ||
} | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
internal static class AssertHelper | ||
{ | ||
internal static void AssertEqualFailures<TFailureCode>( | ||
(TFailureCode FailureCode, string FailureMessage, Exception? SourceException) expected, | ||
(TFailureCode FailureCode, string FailureMessage, Exception? SourceException) actual) | ||
where TFailureCode : struct | ||
{ | ||
Assert.StrictEqual(expected.FailureCode, actual.FailureCode); | ||
Assert.Equal(expected.FailureMessage, actual.FailureMessage); | ||
Assert.Same(expected.SourceException, actual.SourceException); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
global using Xunit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 9 additions & 20 deletions
29
src/core-taggeds-failure/Failure.Tests/Source/Source.Equal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 6 additions & 14 deletions
20
src/core-taggeds-failure/Failure.Tests/Source/Source.Unequal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Deconstruct.Exception.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Deconstruct.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Equals.Equality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using PrimeFuncPack.UnitTest; | ||
using Xunit; | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
|
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Equals.Inequality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using PrimeFuncPack.UnitTest; | ||
using Xunit; | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
|
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Equals.Object.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using PrimeFuncPack.UnitTest; | ||
using Xunit; | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
|
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Equals.Other.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using PrimeFuncPack.UnitTest; | ||
using Xunit; | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
|
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Equals.Static.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using PrimeFuncPack.UnitTest; | ||
using Xunit; | ||
|
||
namespace PrimeFuncPack.Core.Tests; | ||
|
||
|
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Exception.To.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.Factory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.FailureCode.Map.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.FailureCode.With.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/core-taggeds-failure/Failure.Tests/Test.Failure/Test.ToString.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.