Esempio n. 1
0
 public void TestDefaultConstructor()
 {
     SET.Cards cards = new SET.Cards();
     Assert.IsFalse(cards.Inplay);
     Assert.IsFalse(cards.BeenPlayed);
     Assert.IsTrue(cards.Image == string.Empty);
     Assert.IsTrue(cards.Color == string.Empty);
     Assert.IsTrue(cards.Shade == string.Empty);
     Assert.IsTrue(cards.Shape == string.Empty);
     Assert.IsTrue(cards.Number == 0);
 }
Esempio n. 2
0
 public void TestDefaultConstructor()
 {
     SET.Cards cards = new SET.Cards();
     Assert.IsFalse(cards.Inplay);
     Assert.IsFalse(cards.BeenPlayed);
     Assert.IsTrue(cards.Image == string.Empty);
     Assert.IsTrue(cards.Color == string.Empty);
     Assert.IsTrue(cards.Shade == string.Empty);
     Assert.IsTrue(cards.Shape == string.Empty);
     Assert.IsTrue(cards.Number == 0);
 }
Esempio n. 3
0
 public void TestGettersSetters()
 {
     SET.Cards cards = new SET.Cards();
     cards.Image      = "Test/Here";
     cards.Color      = "blue";
     cards.Shade      = "hollow";
     cards.Shape      = "diamond";
     cards.Number     = 2;
     cards.Inplay     = false;
     cards.BeenPlayed = true;
     Assert.IsTrue(cards.Image == "Test/Here");
     Assert.IsTrue(cards.Color == "blue");
     Assert.IsTrue(cards.Shade == "hollow");
     Assert.IsTrue(cards.Shape == "diamond");
     Assert.IsTrue(cards.Number == 2);
     Assert.IsFalse(cards.Inplay);
     Assert.IsTrue(cards.BeenPlayed);
 }
Esempio n. 4
0
 public void TestGettersSetters()
 {
     SET.Cards cards = new SET.Cards();
     cards.Image = "Test/Here";
     cards.Color = "blue";
     cards.Shade = "hollow";
     cards.Shape = "diamond";
     cards.Number = 2;
     cards.Inplay = false;
     cards.BeenPlayed = true;
     Assert.IsTrue(cards.Image == "Test/Here");
     Assert.IsTrue(cards.Color == "blue");
     Assert.IsTrue(cards.Shade == "hollow");
     Assert.IsTrue(cards.Shape == "diamond");
     Assert.IsTrue(cards.Number == 2);
     Assert.IsFalse(cards.Inplay);
     Assert.IsTrue(cards.BeenPlayed);
 }
Esempio n. 5
0
        public void TestGettersSetters()
        {
            SET.Players players = new SET.Players();
            players.IsHost = false;
            players.NumberOfPlayers = 5;
            players.Mute = true;
            players.Score = 15;

            SET.Cards cards = new SET.Cards();
            List<SET.Cards> tempList = new List<SET.Cards>();
            tempList.Add(cards);
            tempList.Add(cards);
            tempList.Add(cards);
            players.SetsMade.Add(tempList);
            Assert.IsTrue(players.SetsMade.Contains(tempList));

            players.Keybinds.Add('a', 'b');
            Assert.IsTrue(players.Keybinds['a'] == 'b');
        }
Esempio n. 6
0
        public void TestGettersSetters()
        {
            SET.Players players = new SET.Players();
            players.IsHost          = false;
            players.NumberOfPlayers = 5;
            players.Mute            = true;
            players.Score           = 15;

            SET.Cards        cards    = new SET.Cards();
            List <SET.Cards> tempList = new List <SET.Cards>();

            tempList.Add(cards);
            tempList.Add(cards);
            tempList.Add(cards);
            players.SetsMade.Add(tempList);
            Assert.IsTrue(players.SetsMade.Contains(tempList));

            players.Keybinds.Add('a', 'b');
            Assert.IsTrue(players.Keybinds['a'] == 'b');
        }