Example #1
0
        public void CheckWinnerNegative2()//with values 2,1
        {
            //checking for return result as true
            bool?result   = RPS.determineWinner(2, 1);
            bool expected = (bool)result;

            Assert.IsFalse(expected);
        }
Example #2
0
        public void CheckWinnerpositive2()//with values 2,0
        {
            //checking for return result as true
            bool?result   = RPS.determineWinner(2, 0);
            bool expected = (bool)result;

            Assert.IsTrue(expected);
        }
Example #3
0
 public void CheckWinnerNotNull2()//with values 2,2
 {
     //checking for null values
     Assert.IsNull(RPS.determineWinner(2, 2));
 }
Example #4
0
 public void CheckWinnerNotNull1()//with values 1,1
 {
     //checking for null values
     Assert.IsNull(RPS.determineWinner(0, 0));
 }