public void TestDivideByZero() { var c = new DivideCommand(options); var exception = Record.Exception(() => c.Execute(new long[] { 8, 0 })); Assert.IsType <DivideByZeroException>(exception); }
public void TestDivideCommand() { var c = new DivideCommand(options); var actualResult = c.Execute(new long[] { 4, 2, 1 }); Assert.Equal(2, actualResult); }