Пример #1
0
        public void NestedIfFalseFalse()
        {
            var strings = YieldClass.NestedIf(false, false).ToArray();

            AssertEquals(strings.Length, 1);
            AssertEquals(strings[0], "four");
        }
Пример #2
0
        public void NestedIfFalseTrue()
        {
            var strings = YieldClass.NestedIf(false, true).ToArray();

            AssertEquals(strings.Length, 1);
            AssertEquals(strings[0], "three");
        }
Пример #3
0
        public void NestedIfTrueTrue()
        {
            var strings = YieldClass.NestedIf(true, true).ToArray();

            AssertEquals(strings.Length, 1);
            AssertEquals(strings[0], "one");
        }
Пример #4
0
        public void NestedIfTrueFalse()
        {
            var strings = YieldClass.NestedIf(true, false).ToArray();

            AssertEquals(strings.Length, 1);
            AssertEquals(strings[0], "two");
        }
Пример #5
0
        public void NestedIfTrueTrue()
        {
            var strings = YieldClass.NestedIf(true, true).ToArray();

            QUnit.AreEqual(strings.Length, 1);
            QUnit.AreEqual(strings[0], "one");
        }