Example #1
0
        public void TreinStationStatusTest()
        {
            //Arrange
            TreinStation treinStation = new TreinStation(1, 1, 1, 1);

            //Act
            treinStation.StationSeinStatus = StationSeinStatus.Groen;
            //Assert
            Assert.True(treinStation.StationSeinStatus == StationSeinStatus.Groen && treinStation.Sein1.Status == StationSeinStatus.Groen && treinStation.Sein2.Status == StationSeinStatus.Rood);
        }
Example #2
0
        public void StationCreationAndDrawTest()
        {
            //Arrange
            TreinStation treinStation = new TreinStation(1, 1, 1, 1);
            Control      control      = new Control();
            Graphics     g            = control.CreateGraphics();

            //Act
            treinStation.Teken(g);
            //Assert
            Assert.True(treinStation.StationSeinStatus == StationSeinStatus.Uit);
        }