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); }
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()); }