Beispiel #1
0
        public void GetGroupValueSumTest_ShouldThrowException(int amountPerGroup, string dataName)
        {
            //Arrange
            var target = new GroupSums <Product>(_TestProducts);

            //Act & Assert
            TestDelegate action = () => target.Get(amountPerGroup, dataName);

            Assert.Throws <ArgumentException>(action);
        }
Beispiel #2
0
        public int[] GetGroupValueSumTest_ShouldEqual(int amountPerGroup, string dataName)
        {
            //Arrange
            var target = new GroupSums <Product>(_TestProducts);

            //Act
            var actual = target.Get(amountPerGroup, dataName);

            //Assert
            return(actual.ToArray());
        }