public void ChangeStrings_Should_Return(string tekst, string expected)
        {
            //setup
            IParticipant een = new Driver("Remon", 0, new SnowMobile(5, 1, 5, false), TeamColors.Red);
            IParticipant twee = new Driver("Peter", 0, new SnowMobile(5, 1, 5, false), TeamColors.Red);

            //action
            var result = Visualisatie.ChangeStrings(tekst, een, twee);

            //assert
            Assert.AreEqual(result, expected);
        }
예제 #2
0
        public void GetStraightTrackShould_ReturnVertical()
        {
            //setup
            int direction  = 0;
            int direction2 = 2;

            //actions
            var result  = Visualisatie.GetStraight(direction);
            var result2 = Visualisatie.GetStraight(direction2);

            //assertions
            Assert.AreEqual(result, _verticalTrack);
            Assert.AreEqual(result, _verticalTrack);
        }
예제 #3
0
        public void GetStraightTrackShould_ReturnHorizontal()
        {
            //setup
            int direction  = 1;
            int direction2 = 3;

            //actions
            var result  = Visualisatie.GetStraight(direction);
            var result2 = Visualisatie.GetStraight(direction2);

            //assertions
            Assert.AreEqual(result, _horizontalTrack);
            Assert.AreEqual(result, _horizontalTrack);
        }
예제 #4
0
        public void GetStartShould_ReturnVertical()
        {
            //setup
            int direction  = 0;
            int direction2 = 2;

            //actions
            var result  = Visualisatie.GetStartGrid(direction);
            var result2 = Visualisatie.GetStartGrid(direction2);

            //assertions
            Assert.AreEqual(result, _startVertical);
            Assert.AreEqual(result, _startVertical);
        }
예제 #5
0
        public void GetFinishShould_ReturnVertical()
        {
            //setup
            int direction  = 0;
            int direction2 = 2;

            //actions
            var result  = Visualisatie.GetFinish(direction);
            var result2 = Visualisatie.GetFinish(direction2);

            //assertions
            Assert.AreEqual(result, _finishVertical);
            Assert.AreEqual(result, _finishVertical);
        }
예제 #6
0
        public void GetFinishShould_ReturnHorizontal()
        {
            //setup
            int direction  = 1;
            int direction2 = 3;

            //actions
            var result  = Visualisatie.GetFinish(direction);
            var result2 = Visualisatie.GetFinish(direction2);

            //assertions
            Assert.AreEqual(result, _finishHorizontal);
            Assert.AreEqual(result, _finishHorizontal);
        }
        public void GetGoodGraphics_Should_ReturnStartVertical()
        {
            //setup
            SectionTypes section = SectionTypes.StartGrid;

            int direction  = 0;
            int direction2 = 2;

            //Actions
            var result  = Visualisatie.GetGoodGraphics(section, direction);
            var result2 = Visualisatie.GetGoodGraphics(section, direction2);

            //Assertions
            Assert.AreEqual(result, _startVertical);
            Assert.AreEqual(result2, _startVertical);
        }
        public void GetGoodGraphics_Should_ReturnFinishHorizontal()
        {
            //setup
            SectionTypes section = SectionTypes.Finish;

            int direction  = 1;
            int direction2 = 3;

            //Actions
            var result  = Visualisatie.GetGoodGraphics(section, direction);
            var result2 = Visualisatie.GetGoodGraphics(section, direction2);

            //Assertions
            Assert.AreEqual(result, _finishHorizontal);
            Assert.AreEqual(result2, _finishHorizontal);
        }
        public void GetGoodGraphics_Should_ReturnStraightHorizontal()
        {
            //setup
            SectionTypes section = SectionTypes.Straight;

            int direction  = 1;
            int direction2 = 3;

            //Actions
            var result  = Visualisatie.GetGoodGraphics(section, direction);
            var result2 = Visualisatie.GetGoodGraphics(section, direction2);

            //Assertions
            Assert.AreEqual(result, _horizontalTrack);
            Assert.AreEqual(result2, _horizontalTrack);
        }
        public void GetGoodGraphics_Should_ReturnSouthToEast()
        {
            //setup
            SectionTypes section  = SectionTypes.RightCorner;
            SectionTypes section2 = SectionTypes.LeftCorner;

            int direction  = 0;
            int direction2 = 3;

            //Actions
            var result  = Visualisatie.GetGoodGraphics(section, direction);
            var result2 = Visualisatie.GetGoodGraphics(section2, direction2);

            //Assertions
            Assert.AreEqual(result, _southToEast);
            Assert.AreEqual(result2, _southToEast);
        }