public StandardInstanceProviderTests()
 {
     this.name = "SomeName";
     this.constructorArguments = new ConstructorArgument[0];
     this.constraint           = m => false;
     this.arguments            = new object[0];
     this.methodInfo           = typeof(IWeaponFactory).GetMethod("CreateWeapon");
     this.testee = new TestableStandardInstanceProvider(this.constraint, this.name, this.constructorArguments, this.arguments)
     {
         ExpectedMethodInfo = this.methodInfo
     };
 }
 public StandardInstanceProviderTests()
 {
     this.name = "SomeName";
     this.constructorArguments = new ConstructorArgument[0];
     this.constraint = m => false;
     this.arguments = new object[0];
     this.methodInfo = typeof(IWeaponFactory).GetMethod("CreateWeapon");
     this.testee = new TestableStandardInstanceProvider(this.constraint, this.name, this.constructorArguments, this.arguments)
         {
             ExpectedMethodInfo = this.methodInfo
         };
 }
Exemplo n.º 3
0
 public StandardInstanceProviderDefaultImplementationTests()
 {
     this.testee = new TestableStandardInstanceProvider();
 }
 public StandardInstanceProviderDefaultImplementationTests()
 {
     this.testee = new TestableStandardInstanceProvider();
 }