Beispiel #1
0
        public void Passing0And4ToYesNo123OrOtherIntMatcherExampleHandledCorrectly()
        {
            var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(0)) +
                         UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(4));

            AreEqual("int=0int=4", result);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public void PassingFalseToYesNo123OrOtherIntMatcherExampleReturnsNo()
        {
            var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(false));

            AreEqual("No", result);
        }
Beispiel #4
0
        public void PassingTrueToYesNo123OrOtherIntMatcherExampleReturnsYes()
        {
            var result = UnionMatcherExamples.YesNo123OrOtherIntMatcherExample(new Union <int, bool>(true));

            AreEqual("Yes", result);
        }