public void isOuterAirTerminal_test() { string strArchPath = @"D:\wangT\HVAC-Checker\UnitTestHVACChecker\测试数据\xdb\isOuterAirTerminal_test\建筑模型.XDB"; string strHVACPath = @"D:\wangT\HVAC-Checker\UnitTestHVACChecker\测试数据\xdb\isOuterAirTerminal_test\机电模型.GDB"; HVACFunction hvacFunction = new HVACFunction(strArchPath, strHVACPath); //arrange List <AirTerminal> airTerminals = HVACFunction.GetAirterminals(); //act //assert foreach (AirTerminal airTerminal in airTerminals) { if (airTerminal.Id == 1254703607509417984) { Assert.IsFalse(HVACFunction.isOuterAirTerminal(airTerminal)); } else if (airTerminal.Id == 1254703607538778113) { Assert.IsFalse(HVACFunction.isOuterAirTerminal(airTerminal)); } else if (airTerminal.Id == 1254703607475863552) { Assert.IsTrue(HVACFunction.isOuterAirTerminal(airTerminal)); } else if (airTerminal.Id == 1254703607379394560) { Assert.IsTrue(HVACFunction.isOuterAirTerminal(airTerminal)); } } }