public override bool IsTrue(ChessGame transaction)
 {
     return(categoriser.Categorise(transaction.TimeControl) == Value);
 }
Пример #2
0
 public void With_a_string_without_a_plus_sign_an_exception_is_thrown()
 {
     Assert.ThrowsAny <Exception>(() => categoriser.Categorise("thisstring"));
 }
 public TimeControlFact(ITimeControlCategoriser categoriser, string time)
 {
     this.categoriser = categoriser;
     Value            = categoriser.Categorise(time);
 }