5dplomacy/MultiversalDiplomacyTests/Is.cs

26 lines
767 B
C#
Raw Normal View History

2022-03-23 05:11:14 +00:00
using MultiversalDiplomacy.Adjudicate;
using MultiversalDiplomacy.Adjudicate.Decision;
2022-03-23 05:11:14 +00:00
namespace MultiversalDiplomacyTests;
public class Is : NUnit.Framework.Is
{
public static OrderValidationConstraint Valid
=> new(true, ValidationReason.Valid);
2022-03-23 05:11:14 +00:00
public static OrderValidationConstraint Invalid(ValidationReason expected)
=> new(false, expected);
public static OrderBinaryAdjudicationConstraint<IsDislodged> Dislodged
=> new(true);
public static OrderBinaryAdjudicationConstraint<IsDislodged> NotDislodged
=> new(false);
public static OrderBinaryAdjudicationConstraint<DoesMove> Victorious
=> new(true);
public static OrderBinaryAdjudicationConstraint<DoesMove> Repelled
=> new(false);
2022-03-23 05:11:14 +00:00
}