LibHac/tests/LibHac.Tests/ResultAsserts.cs
2021-11-14 18:36:53 -07:00

24 lines
520 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);
}
}