public void TestExecute1() { var obj = new DivCommand(); // We expect an exception because we are missing any arguments. // obj.Execute(new List <string> { }); }
public void TestExecute4() { var obj = new DivCommand(); // We expect an exception because we need exactly two arguments. // obj.Execute(new List <string> { "1", "2", "3" }); }
public void TestExecute2() { var obj = new DivCommand(); // We expect an exception because we are not allowed to divide by zero. // obj.Execute(new List <string> { "1", "0" }); }