예제 #1
0
        public void CreateBuildsAndPopulatesNestedInstances()
        {
            var actual = Model.WriteLog <Person>(_output.WriteLine).Create();

            actual.Address.Should().NotBeNull();
            actual.Address !.AddressLine1.Should().NotBeNullOrEmpty();
            actual.Address.AddressLine2.Should().NotBeNullOrEmpty();
            actual.Address.AddressLine3.Should().BeNullOrEmpty();
            actual.Address.City.Should().NotBeNullOrEmpty();
            actual.Address.Country.Should().NotBeNullOrEmpty();
            actual.Address.State.Should().NotBeNullOrEmpty();
            actual.Address.Suburb.Should().NotBeNullOrEmpty();
        }