public void Initialize() { testMethodSourceCodeGenerator = MockRepository.GenerateMock<INullArgumentMethodTestMethodSourceCodeGenerator>(); testMethodSourceCodeGenerator.Stub(m => m.BuildMethodName(null)) .IgnoreArguments() .Return(expectedMethodName); testMethodSourceCodeGenerator.Stub(m => m.BuildSourceCode(null)) .IgnoreArguments() .Return(expectedSourceCode); testee = new NullArgumentMethodTestMethodGenerator(testMethodSourceCodeGenerator); }
public void Initialize() { testMethodSourceCodeGenerator = MockRepository.GenerateMock <INullArgumentMethodTestMethodSourceCodeGenerator>(); testMethodSourceCodeGenerator.Stub(m => m.BuildMethodName(null)) .IgnoreArguments() .Return(expectedMethodName); testMethodSourceCodeGenerator.Stub(m => m.BuildSourceCode(null)) .IgnoreArguments() .Return(expectedSourceCode); testee = new NullArgumentMethodTestMethodGenerator(testMethodSourceCodeGenerator); }
/// <summary> /// Initializes a new instance of the NullArgumentMethodTestMethodGenerator class. /// </summary> /// <param name="nullArgumentMethodTestMethodSourceCodeGenerator">Source code generator.</param> public NullArgumentMethodTestMethodGenerator(INullArgumentMethodTestMethodSourceCodeGenerator nullArgumentMethodTestMethodSourceCodeGenerator) { Check.NotNull(nullArgumentMethodTestMethodSourceCodeGenerator, "nullArgumentMethodTestMethodSourceCodeGenerator"); sourceCodeGenerator = nullArgumentMethodTestMethodSourceCodeGenerator; }