예제 #1
0
        public void ValidWordSquare_5()
        {
            var solution = new _0422_ValidWordSquare();
            var result   = solution.ValidWordSquare(new List <string>()
            {
                "abc",
                "b"
            });

            Assert.IsFalse(result);
        }
예제 #2
0
        public void ValidWordSquare_1()
        {
            var solution = new _0422_ValidWordSquare();
            var result   = solution.ValidWordSquare(new List <string>()
            {
                "abcd",
                "bnrt",
                "crmy",
                "dtye"
            });

            Assert.IsTrue(result);
        }
예제 #3
0
        public void ValidWordSquare_4()
        {
            var solution = new _0422_ValidWordSquare();
            var result   = solution.ValidWordSquare(new List <string>()
            {
                "ball",
                "asee",
                "let",
                "lep"
            });

            Assert.IsFalse(result);
        }
예제 #4
0
        public void ValidWordSquare_3()
        {
            var solution = new _0422_ValidWordSquare();
            var result   = solution.ValidWordSquare(new List <string>()
            {
                "ball",
                "area",
                "read",
                "lady"
            });

            Assert.IsFalse(result);
        }