Ejemplo n.º 1
0
        public void GetWindowCombinations_5Rooms()
        {
            var flat = new Flat()
            {
                TopWindows    = 3,
                BottomWindows = 3,
                FType         = "CL",
                Indexes       = new List <int>()
                {
                    0, 1, 2, 3, 4, 5
                }
            };

            flat.SetWindowCombinations();
            var res = string.Join('_', flat.WindowCombinations);

            Assert.AreEqual(res, "0,1,2_0,1,3_0,1,4_0,1,5_0,2,3_0,2,4_0,2,5_0,3,4_0,3,5_0,4,5_1,2,3_1,2,4_1,2,5_1,3,4_1,3,5_1,4,5_2,3,4_2,3,5_2,4,5_3,4,5");
        }
Ejemplo n.º 2
0
        public void GetWindowCombinations_3Rooms()
        {
            var flat = new Flat()
            {
                TopWindows    = 2,
                BottomWindows = 2,
                FType         = "CL",
                Indexes       = new List <int>()
                {
                    0, 1, 2, 3
                }
            };

            flat.SetWindowCombinations();
            var res = string.Join('_', flat.WindowCombinations);

            Assert.AreEqual(res, "0_1_2_3");
        }