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

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

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

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

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

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

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

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