public void TestInitialize() { FooBarSignature instanceMethod = new TestAssembly.PublicClass().FooBar; expressionBuilder = MockRepository.GenerateMock <IExpressionBuilder>(); instanceMethodRequest = new MethodSourceCodeGenerationRequest(instanceMethod.Method, false, instanceMethod.Method.GetParameters().First()); var testMethodValueProvider = MockRepository.GenerateMock <ITestMethodValueProvider>(); testee = new NullArgumentMethodTestMethodSourceCodeGenerator(expressionBuilder, testMethodValueProvider); }
public void TestInitialize() { FooBarSignature instanceMethod = new TestAssembly.PublicClass().FooBar; expressionBuilder = MockRepository.GenerateMock<IExpressionBuilder>(); instanceMethodRequest = new MethodSourceCodeGenerationRequest(instanceMethod.Method, false, instanceMethod.Method.GetParameters().First()); var testMethodValueProvider = MockRepository.GenerateMock<ITestMethodValueProvider>(); testee = new NullArgumentMethodTestMethodSourceCodeGenerator(expressionBuilder, testMethodValueProvider); }