public void MeetingRoomII_Test() { // [[0, 30],[5, 10],[15, 20]] var instance = new MeetingRoomsII(); var data = new[] { new MeetingRoomsII.Interval(0, 30), new MeetingRoomsII.Interval(5, 10), new MeetingRoomsII.Interval(15, 20) }; Assert.AreEqual(3, instance.MinMeetingRooms(data)); data = new[] { new MeetingRoomsII.Interval(7, 10), new MeetingRoomsII.Interval(2, 4) }; Assert.AreEqual(2, instance.MinMeetingRooms(data)); }
public void Empty() { var actual = MeetingRoomsII.Run(); Assert.That(actual, Is.EqualTo(0)); }