public void Add()
        {
            Form1 myform = new Form1();
            var   Actual = myform.Add("4", "5");

            Assert.AreEqual(expected: "9", Actual);
        }
示例#2
0
 public void TakeCard(Player players, object card, int id)
 {
     NullDeck();
     players.TakeCard(MixedCards.ReturnCard());
     MainForm.Add(MixedCards.ReturnCard(), id);
     MixedCards.DeleteCard();
 }
        public void Addition()
        {
            Form1 calform = new Form1();
            var   Actual  = calform.Add("10", "5");

            Assert.AreEqual(expected: "15", Actual);
        }
示例#4
0
        public void addTest()
        {
            // Arrange
            var currentForm1 = new Form1();
            // Act
            var result = currentForm1.Add(1, 9);

            //Assert
            Assert.AreEqual(10, result);
        }