public void GetAllRoomsInCertainStory_test() { string strArchPath = @"D:\wangT\HVAC-Checker\UnitTestHVACChecker\测试数据\xdb\getRoomInCertainStorey_test\建筑模型.XDB"; string strHVACPath = @""; HVACFunction hvacFunction = new HVACFunction(strArchPath, strHVACPath); //arrange Room room_1 = new Room(726561); Room room_2 = new Room(726564); //act List <Room> rooms = HVACFunction.GetAllRoomsInCertainStorey(1); //assert Assert.IsTrue(rooms.Exists(x => x.Id == 726561)); Assert.IsTrue(rooms.Exists(x => x.Id == 726564)); }