public void Add(string methodName, params Object[] parameters) { if (methodName==null) throw new ArgumentNullException("methodName"); // first let's find the method MethodInfo mi = findMethod(methodName,parameters); // now let's create the test case MethodTester tester = new MethodTester(methodName,this.testedInstance,mi,parameters); tester.Suite=this.Suite; tester.AddAllThrowArgumentNull(); }
public ITestSuite AutomaticSmartMethodSuite() { ArgumentNullDummyClass dummy = new ArgumentNullDummyClass(); MethodTester suite = new MethodTester( "SmartMethod", new MultiArgumentDelegate(dummy.SmartMethod), "hello", "world", 1 ); suite.AddAllThrowArgumentNull(); return suite.Suite; }
public void Add(string methodName, params Object[] parameters) { if (methodName == null) { throw new ArgumentNullException("methodName"); } // first let's find the method MethodInfo mi = findMethod(methodName, parameters); // now let's create the test case MethodTester tester = new MethodTester(methodName, this.testedInstance, mi, parameters); tester.Suite = this.Suite; tester.AddAllThrowArgumentNull(); }