public void GetDeliveries_HighValueSelector_LowValueParcel_ReturnsEmptyList() { // Arrange var selector = new FilterByLargerValuesGrouping(LowValueParcel, 1000.0); // Act var selectedItems = selector.GetDeliveries().ToList(); // Assert Assert.AreEqual(selectedItems.Count(), 0); }
public void GetDeliveries_VeryHighValueSelector_MultipleParcels_SizeTwoList() { // Arrange var selector = new FilterByLargerValuesGrouping(MultipleParcels, 2000.0); // Act var selectedItems = selector.GetDeliveries().ToList(); // Assert Assert.AreEqual(selectedItems.Count(), 1); Assert.AreEqual(selectedItems[0].value, 5000.0); }
public void GetDeliveries_HighValueSelector_HighValueParcel_SizeOneList() { // Arrange var selector = new FilterByLargerValuesGrouping(HighValueParcel, 1000.0); // Act var selectedItems = selector.GetDeliveries().ToList(); // Assert Assert.AreEqual(selectedItems.Count(), 1); Assert.AreEqual(selectedItems[0].weight, 5.0); Assert.AreEqual(selectedItems[0].value, 5000.0); }