コード例 #1
0
        public void IfStatementTwoItemsTrue()
        {
            var strings = YieldClass.IfStatementTwoItems(true).ToArray();

            AssertEquals(strings.Length, 2);
            AssertEquals(strings[0], "one");
            AssertEquals(strings[1], "two");
        }
コード例 #2
0
        public void IfStatementTwoItemsFalse()
        {
            var strings = YieldClass.IfStatementTwoItems(false).ToArray();

            AssertEquals(strings.Length, 2);
            AssertEquals(strings[0], "three");
            AssertEquals(strings[1], "four");
        }