Ejemplo n.º 1
0
            public void TestExecute1()
            {
                var obj = new DivCommand();

                // We expect an exception because we are missing any arguments.
                //
                obj.Execute(new List <string> {
                });
            }
Ejemplo n.º 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"
                });
            }
Ejemplo n.º 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"
                });
            }