示例#1
0
        public void OvergangElementStatusTest()
        {
            //Arrange
            SpoorwegOvergang overgang = new SpoorwegOvergang(1, 1, 1, 1, Orientatie.Verticaal);

            //Act
            overgang.Status = OvergangSeinStatus.Aan;
            //Assert
            Assert.True(overgang.Status == OvergangSeinStatus.Aan && overgang.Sein1.Status == OvergangSeinStatus.Aan && overgang.Sein2.Status == OvergangSeinStatus.Aan);
        }
示例#2
0
        public void OvergangCreationAndDrawTest()
        {
            //Arrange
            SpoorwegOvergang overgang = new SpoorwegOvergang(1, 1, 1, 1, Orientatie.Horizontaal);
            Control          control  = new Control();
            Graphics         g        = control.CreateGraphics();

            //Act
            overgang.Teken(g);
            //Assert
            Assert.True(overgang.Status == OvergangSeinStatus.Uit);
        }