LibHac/tests/LibHac.Tests/ResultAsserts.cs
2023-10-11 09:27:26 -07:00

24 lines
No EOL
535 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 EqualException.ForMismatchedValues(expected.Value, actual);
}
}