Example #1
0
        public void Ex2Meth3_2()
        {
            var  x     = new Exercise2();
            bool alive = x.Method3(7);

            Assert.AreEqual(alive, false);
        }
Example #2
0
        public void Ex2Meth3_1()
        {
            var  x     = new Exercise2();
            bool alive = x.Method3(4);

            Assert.AreEqual(alive, true);
        }
Example #3
0
        public void Excercise2Method3_4_true()
        {
            Exercise2 e2 = new Exercise2();

            Assert.True(e2.Method3(4));
        }
Example #4
0
        public void Excercise2Method3_3_false()
        {
            Exercise2 e2 = new Exercise2();

            Assert.False(e2.Method3(3));
        }
Example #5
0
        public void Method3TestIfEven()
        {
            int neighbour = 4;

            Assert.IsTrue(ex2.Method3(neighbour));
        }
Example #6
0
        public void Ex2Test3()
        {
            Exercise2 ex2 = new Exercise2();

            Assert.AreEqual(ex2.Method3(1), false);
        }
Example #7
0
        public void Ex2Test2()
        {
            Exercise2 ex2 = new Exercise2();

            Assert.AreEqual(ex2.Method3(2), true);
        }