mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
24 lines
No EOL
519 B
C#
24 lines
No EOL
519 B
C#
using LibHac;
|
|
using Xunit.Sdk;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace Xunit;
|
|
|
|
public partial class Assert
|
|
{
|
|
public static void Success(Result result)
|
|
{
|
|
Equal(LibHac.Result.Success, result);
|
|
}
|
|
|
|
public static void Failure(Result result)
|
|
{
|
|
NotEqual(LibHac.Result.Success, result);
|
|
}
|
|
|
|
public static void Result(Result.Base expected, Result actual)
|
|
{
|
|
if (!expected.Includes(actual))
|
|
throw new EqualException(expected.Value, actual);
|
|
}
|
|
} |