public void Bug18556_MethodNoNullDependecyElementThrowException() { IUnityContainer container = GetContainer("MethodNoNullDependecyElementThrowException"); ClassWithConstMethodandProperty <IGenLogger> dep = container.Resolve <ClassWithConstMethodandProperty <IGenLogger> >(); }
public void Bug18556_MethodNoNullDependecyElement() { IUnityContainer container = GetContainer("MethodNoNullDependecyElement"); ClassWithConstMethodandProperty <IGenLogger> dep = container.Resolve <ClassWithConstMethodandProperty <IGenLogger> >(); Assert.IsNotNull(dep.Value); Assert.IsInstanceOfType(dep.Value, typeof(GenSpecialLogger)); }
public void Bug18556_PropertyDependecyElement() { IUnityContainer container = GetContainer("PropertyDependecyElement"); ClassWithConstMethodandProperty <IGenLogger> dep = container.Resolve <ClassWithConstMethodandProperty <IGenLogger> >(); Assert.IsNotNull(dep.Value); Assert.IsInstanceOfType(dep.Value, typeof(GenMockLogger)); string str = dep.Value.ToString(); }