2022-03-23 05:11:14 +00:00
|
|
|
using MultiversalDiplomacy.Adjudicate;
|
2022-03-28 22:05:04 +00:00
|
|
|
using MultiversalDiplomacy.Adjudicate.Decision;
|
2022-03-23 05:11:14 +00:00
|
|
|
|
|
|
|
namespace MultiversalDiplomacyTests;
|
|
|
|
|
|
|
|
public class Is : NUnit.Framework.Is
|
|
|
|
{
|
|
|
|
public static OrderValidationConstraint Valid
|
2022-03-28 22:05:04 +00:00
|
|
|
=> new(true, ValidationReason.Valid);
|
2022-03-23 05:11:14 +00:00
|
|
|
|
|
|
|
public static OrderValidationConstraint Invalid(ValidationReason expected)
|
2022-03-28 22:05:04 +00:00
|
|
|
=> 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
|
|
|
}
|