Пример #1
0
        public void IsEquipmentChimneyHasFlexibleShortTubeTest_pass()
        {
            string         strArchPath  = @"D:\wangT\HVAC-Checker\UnitTestHVACChecker\测试数据\xdb\GB50736_2012_6_6_13\建筑模型.XDB";
            string         strHVACPath  = @"D:\wangT\HVAC-Checker\UnitTestHVACChecker\测试数据\xdb\GB50736_2012_6_6_13\机电模型_Pass.XDB";
            HVACFunction   hvacFunction = new HVACFunction(strArchPath, strHVACPath);
            List <Element> equipments   = new List <Element>();

            equipments.AddRange(HVACFunction.GetAllAbsorptionChillers());
            equipments.AddRange(HVACFunction.GetAllBoilers());

            bool isAllEquipmentChimneyHasFlexibleShortTube = true;

            foreach (Element equipment in equipments)
            {
                if (!HVACFunction.IsEquipmentChimneyHasFlexibleShortTube(equipment))
                {
                    isAllEquipmentChimneyHasFlexibleShortTube = false;
                    break;
                }
            }

            Assert.IsTrue(isAllEquipmentChimneyHasFlexibleShortTube);
        }