Example #1
0
            public void TestExecute1()
            {
                var obj = new DivCommand();

                // We expect an exception because we are missing any arguments.
                //
                obj.Execute(new List <string> {
                });
            }
Example #2
0
            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"
                });
            }
Example #3
0
            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"
                });
            }