Пример #1
0
 public void IfNeededDoesNotReplace()
 {
     sut.BindGeneric(typeof(IGeneric1 <>), typeof(Concrete <>));
     sut.BindGenericIfNeeded(typeof(IGeneric1 <>), typeof(Concrete2 <>));
     Assert.True(sut.Get <IGeneric1 <int> >() is Concrete <int>);
     Assert.True(sut.Get <IGeneric1 <string> >() is Concrete <string>);
 }