2020-02-14 01:21:24 +01:00
|
|
|
|
using LibHac;
|
|
|
|
|
using Xunit.Sdk;
|
|
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
2021-11-14 20:08:57 +01:00
|
|
|
|
namespace Xunit;
|
|
|
|
|
|
|
|
|
|
public partial class Assert
|
2020-02-14 01:21:24 +01:00
|
|
|
|
{
|
2021-11-14 20:08:57 +01:00
|
|
|
|
public static void Success(Result result)
|
2020-02-14 01:21:24 +01:00
|
|
|
|
{
|
2021-11-14 20:08:57 +01:00
|
|
|
|
Equal(LibHac.Result.Success, result);
|
|
|
|
|
}
|
2020-02-14 01:21:24 +01:00
|
|
|
|
|
2021-11-14 20:08:57 +01:00
|
|
|
|
public static void Failure(Result result)
|
|
|
|
|
{
|
|
|
|
|
NotEqual(LibHac.Result.Success, result);
|
|
|
|
|
}
|
2020-02-14 01:21:24 +01:00
|
|
|
|
|
2021-11-14 20:08:57 +01:00
|
|
|
|
public static void Result(Result.Base expected, Result actual)
|
|
|
|
|
{
|
|
|
|
|
if (!expected.Includes(actual))
|
2023-10-09 06:03:56 +02:00
|
|
|
|
throw EqualException.ForMismatchedValues(expected.Value, actual);
|
2020-02-14 01:21:24 +01:00
|
|
|
|
}
|
2022-11-12 02:21:07 +01:00
|
|
|
|
}
|