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);
        }
示例#2
0
        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);
        }
示例#3
0
 /// <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;
 }