예제 #1
0
        public void Test_Add1d()
        {
            //arrange
            string direction  = "HORIZAONTAL";
            int    row        = 3;
            int    col        = 2;
            string word       = "THANK";
            int    expect_len = 4;
            //act
            NewFile nf      = new NewFile();
            int     act_len = nf.add_1dword(direction, row, col, word).Count;

            //assert
            Assert.AreEqual(expect_len, act_len, "The word is wrong insert");
        }