public void RemoveRoom_ShouldWorkWithOneEntry() { // Arrange int expected = 0; container.AddRoom(room); // Act container.RemoveRoom(room); int result = container.Rooms.Count; // Assert Assert.Equal(expected, result); }
public void RemoveRoom_ShouldWorkWithOne() { // Arrange var rooms = TestDB.GetRoomsTable(); Room toRemove = (Room)rooms[0]; int expected = rooms.Count - 1; // Act bool validCall = container.RemoveRoom(toRemove); int result = container.Rooms.Count; // Assert Assert.Equal(expected, result); Assert.True(validCall); }