Пример #1
0
        public void testIsInvalidSituation_Valid_DifferentFloors()
        {
            var objs = new List <List <string> >();

            objs.Add(new List <string>()
            {
                "BM"
            });
            objs.Add(new List <string>()
            {
                "BG"
            });
            objs.Add(new List <string>()
            {
                "CM"
            });
            objs.Add(new List <string>()
            {
                "CG"
            });

            var floorState = new FloorState(0, objs, 0);
            var result     = floorState.IsInvalidSituation();

            Assert.False(result);
        }
Пример #2
0
        public void testIsInvalidSituation_Invalid()
        {
            var objs = new List <List <string> >();

            objs.Add(new List <string>()
            {
                "BM", "CG"
            });
            objs.Add(new List <string>()
            {
                "BG"
            });
            objs.Add(new List <string>()
            {
                "CM"
            });
            objs.Add(new List <string>());

            var floorState = new FloorState(0, objs, 0);
            var result     = floorState.IsInvalidSituation();

            Assert.True(result);
        }