예제 #1
0
        public void AreaWithCeilingNullAndWithAltitudeNullIsValid()
        {
            var area = new Area();

            area.Ceiling  = null;
            area.Altitude = null;

            var ceilingExistanceValidator = new CeilingExistenceValidator(area);

            Assert.True(ceilingExistanceValidator.IsValid);
        }
예제 #2
0
        public void AreaWithCeilingAndWitAltitudeNullIsInvalid()
        {
            var area = new Area();

            area.Ceiling  = 123;
            area.Altitude = null;

            var ceilingExistanceValidator = new CeilingExistenceValidator(area);

            Assert.False(ceilingExistanceValidator.IsValid);
        }
예제 #3
0
        public void AreaWithCeilingAndWitAltitudeIsValid()
        {
            var area = new Area();

            area.Ceiling  = 123;
            area.Altitude = 142;

            var ceilingExistanceValidator = new CeilingExistenceValidator(area);

            Assert.True(ceilingExistanceValidator.IsValid);
        }