public ITestSuite AutomaticClassSuite()
        {
            ArgumentNullDummyClass dummy = new ArgumentNullDummyClass();
            ClassTester suite = new ClassTester("DummyClassTest",dummy);
            suite.Add("ClassicMethod","hello","world",1);
            suite.Add("SmartMethod","hello","world",1);

            return suite.Suite;
        }
Ejemplo n.º 2
0
        public ITestSuite AutomaticClassSuite()
        {
            ArgumentNullDummyClass dummy = new ArgumentNullDummyClass();
            ClassTester            suite = new ClassTester("DummyClassTest", dummy);

            suite.Add("ClassicMethod", "hello", "world", 1);
            suite.Add("SmartMethod", "hello", "world", 1);

            return(suite.Suite);
        }
        public ITestSuite AutomaticSmartMethodSuite()
        {
            ArgumentNullDummyClass dummy = new ArgumentNullDummyClass();
            MethodTester suite = new MethodTester(
                "SmartMethod",
                new MultiArgumentDelegate(dummy.SmartMethod),
                "hello",
                "world",
                1
                );
            suite.AddAllThrowArgumentNull();

            return suite.Suite;
        }
Ejemplo n.º 4
0
        public ITestSuite AutomaticSmartMethodSuite()
        {
            ArgumentNullDummyClass dummy = new ArgumentNullDummyClass();
            MethodTester           suite = new MethodTester(
                "SmartMethod",
                new MultiArgumentDelegate(dummy.SmartMethod),
                "hello",
                "world",
                1
                );

            suite.AddAllThrowArgumentNull();

            return(suite.Suite);
        }