public void Construct_ForTypeClass_InstanceWithPropertyNotAutoPopulated( ) { var sut = new SutLazyInstanceCreator(new ArgumentNullExceptionFinder( ), new CustomAttributeFinder( )); var construct = sut.Construct(new ArgumentsGenerator( ), typeof(Lazy <Device>)) as Lazy <Device>; construct?.Value .NotAutoPopulated .Should( ) .Be(Device.SomeText); }
public void Construct_ForTypeClass_InstanceWithPropertySetByDependency( ) { var sut = new SutLazyInstanceCreator(new ArgumentNullExceptionFinder( ), new CustomAttributeFinder( )); var construct = sut.Construct(new ArgumentsGenerator( ), typeof(Lazy <Device>)) as Lazy <Device>; construct?.Value .PopulatedByDependency .Should( ) .NotBeNull( ); }