示例#1
0
        public void GetDeliveries_LightWeightsSelector_ultipleParcelsTwoRecipients_ReturnsSizeTwoList()
        {
            // Arrange
            var selector = new FilterGrouping(MultipleParcelsTwoRecipients);
            // Act
            var selectedItems = selector.GetDeliveries().ToList();

            // Assert
            Assert.AreEqual(selectedItems.Count(), 2);
        }
示例#2
0
        public void GetDeliveries_FilterGrouping_MultipleParcelsOneRecipients_ReturnsSizeOneList()
        {
            // Arrange
            var selector = new FilterGrouping(MultipleParcelsOneRecipients);
            // Act
            var selectedItems = selector.GetDeliveries().ToList();

            // Assert
            Assert.AreEqual(selectedItems.Count(), 1);
            Assert.AreEqual(selectedItems[0].weight, 105);
            Assert.AreEqual(selectedItems[0].value, 1501);
        }