public void SetHeight() { var roomRow = new RoomRow(Polygon.Rectangle(9.0, 3.0)); for (int i = 0; i < 3; i++) { Assert.True(roomRow.AddRoom(new Room(new Vector3(3.0, 3.0, 3.0)))); } roomRow.SetHeight(10.0); foreach (Room room in roomRow.Rooms) { Assert.Equal(10.0, room.Height); } }
public void SetHeight() { var roomRow = new RoomRow(Vector3.Origin, new Vector3(10.0, 0.0)); for (int i = 0; i < 3; i++) { Assert.True(roomRow.AddRoom(new Room() { DesignArea = 9.0 })); } roomRow.SetHeight(10.0); foreach (Room room in roomRow.Rooms) { Assert.Equal(10.0, room.Height); } }