예제 #1
0
        public void TestUpdateWordSet()
        {
            usercontrol uc = new usercontrol();
            int         actual;
            int         expected = 1;

            actual = uc.updateWS("English and Nepali", 1);
            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void TestInsertWordSetNameAndRetrivingId()
        {
            usercontrol uc = new usercontrol();
            int         actual;
            int         expected = 23;

            actual = uc.insertWS("New");

            Assert.AreEqual(expected, actual);
        }
예제 #3
0
        public void TestRetrievingGameID()
        {
            usercontrol uc = new usercontrol();
            int         actual;
            int         expected = 1134;

            actual = uc.retrieveGameID();

            Assert.AreEqual(expected, actual);
        }
예제 #4
0
        public void TestHighscorePlayerNameOfWordsetEnglishNepali()
        {
            usercontrol uc = new usercontrol();
            DataSet     ds = uc.highScore1();
            string      actual;
            string      expected = "Kimi";

            actual = ds.Tables[3].Rows[0][1].ToString();

            Assert.AreEqual(expected, actual);
        }
예제 #5
0
        public void TestLanguageName()
        {
            usercontrol uc = new usercontrol();

            string[] actual   = new string[2];
            string[] expected = new string[2] {
                "English", "Nepali"
            };

            actual = uc.showLan(1);

            Assert.AreEqual(expected[1], actual[1]);
        }
예제 #6
0
        public void TestPlayerName()
        {
            usercontrol uc = new usercontrol();

            string[] actual;
            string[] expected = new string[2] {
                "albert", "aal"
            };

            actual = new string[2];

            actual = uc.PlayerName(2);
            Assert.AreEqual(expected[1], actual[1]);
        }