コード例 #1
0
 public void Check_Any_Factory_DoesNot_Solve_AWrong_Candidate_3()
 {
     var f = new NInject.Extensions.AnyFactory.AnyFactory();
     Assert.IsFalse(f.CanActAsAFactory(typeof(ISomeNonProperFactory3)));
 }
コード例 #2
0
 public void Check_AnyFactory_Resolves_Proper_Candidate()
 {
     var f = new NInject.Extensions.AnyFactory.AnyFactory();
     Assert.IsTrue(f.CanActAsAFactory(typeof(ISomeFactory)));
 }