System.Tests.ConsoleKeyInfoTests.AllCombinationsOfThreeBools C# (CSharp) 메소드

AllCombinationsOfThreeBools() 공개 정적인 메소드

public static AllCombinationsOfThreeBools ( ) : IEnumerable
리턴 IEnumerable
        public static IEnumerable<object[]> AllCombinationsOfThreeBools()
        {
            var bools = new[] { true, false };
            foreach (var one in bools)
                foreach (var two in bools)
                    foreach (var three in bools)
                        yield return new object[] { one, two, three };
        }
    }