Esempio n. 1
0
        public void When_SimuuSensesSimuu_Expect_True()
        {
            // arrange
            SimulationLogic logic  = new SimulationLogic();
            SimuuBLL        simuu1 = MakeSampleSimuu(1);
            SimuuBLL        simuu2 = MakeSampleSimuu(2);

            bool expected = true;
            // act
            bool actual = logic.TestSenseCollision(simuu1, simuu2);

            //assert
            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void When_SimuuDoesntSenseSimuu_Expect_False()
        {
            // arrange
            SimulationLogic logic  = new SimulationLogic();
            SimuuBLL        simuu1 = MakeSampleSimuu(1);
            SimuuBLL        simuu2 = MakeSampleSimuu(2);

            simuu2.SimuuXCoordinate = 100;
            simuu2.SimuuYCoordinate = 100;

            bool expected = false;
            // act
            bool actual = logic.TestSenseCollision(simuu1, simuu2);

            //assert
            Assert.AreNotEqual(expected, actual);
        }