public void TestUpdateWordSet() { usercontrol uc = new usercontrol(); int actual; int expected = 1; actual = uc.updateWS("English and Nepali", 1); Assert.AreEqual(expected, actual); }
public void TestInsertWordSetNameAndRetrivingId() { usercontrol uc = new usercontrol(); int actual; int expected = 23; actual = uc.insertWS("New"); Assert.AreEqual(expected, actual); }
public void TestRetrievingGameID() { usercontrol uc = new usercontrol(); int actual; int expected = 1134; actual = uc.retrieveGameID(); Assert.AreEqual(expected, actual); }
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); }
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]); }
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]); }