Ejemplo n.º 1
0
        public void TestPlayerEmptyLine()
        {
            Player player = new Player("                          ");

              Assert.AreEqual("", player.name);
              Assert.AreEqual(0, player.wk);
              Assert.AreEqual("", player.location);
              Assert.IsTrue(player.isEmpty());
        }
Ejemplo n.º 2
0
        public void TestPlayer()
        {
            Player player = new Player("V Surkov          2.5VT   ");

              Assert.AreEqual("V Surkov", player.name);
              Assert.AreEqual(2.5, player.wk);
              Assert.AreEqual("VT", player.location);
              Assert.IsFalse(player.isEmpty());
        }
Ejemplo n.º 3
0
        public void TestPlayerWithoutRating()
        {
            Player player = new Player("V Surkov             VT   ");

              Assert.AreEqual(0, player.wk);
        }