Esempio n. 1
0
        public void Figh5()
        {
            int f = 0, s = 4;

            YourTasksHere.Fight(ref f, 2, ref s, 5);
            Assert.AreEqual(0, f);
            Assert.AreEqual(4, s);
        }
Esempio n. 2
0
        public void Figh3()
        {
            int f = 10, s = 100;

            YourTasksHere.Fight(ref f, 5, ref s, 1);
            Assert.AreEqual(0, f);
            Assert.AreEqual(50, s);
        }
Esempio n. 3
0
        public void Figh4()
        {
            int f = 3, s = 4;

            YourTasksHere.Fight(ref f, 2, ref s, 5);
            Assert.AreEqual(-2, f);
            Assert.AreEqual(2, s);
        }
Esempio n. 4
0
        public void Fight1()
        {
            int f = 100, s = 100;

            YourTasksHere.Fight(ref f, 10, ref s, 10);
            Assert.AreEqual(0, f);
            Assert.AreEqual(0, s);
        }