public void Passing0And4ToYesNo123OrOtherIntMatcherExampleHandledCorrectly() { var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(0)) + UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(4)); AreEqual("int=0int=4", result); }
public void Passing12And3ToYesNo123OrOtherIntMatcherExampleHandledCorrectly() { var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(1)) + UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(2)) + UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(3)); AreEqual("1 in range 1-32 in range 1-33 in range 1-3", result); }
public void PassingFalseToYesNo123OrOtherIntMatcherExampleReturnsNo() { var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(false)); AreEqual("No", result); }
public void PassingTrueToYesNo123OrOtherIntMatcherExampleReturnsYes() { var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(true)); AreEqual("Yes", result); }