public void ConstructorSetsProperty() { ContainerForExampleWithDefault o = new ContainerForExampleWithDefault(); o.IsDirty.Should().BeTrue(); o.Example.MyChar.Should().Be('D'); }
public void DirtinessWithDefaultValueInConstructor() { ContainerForExampleWithDefault o = new ContainerForExampleWithDefault(); var c = o.CloneLazinatorTyped(); c.IsDirty.Should().BeFalse(); c.DescendantIsDirty.Should().BeFalse(); c.HasChanged.Should().BeFalse(); c.DescendantHasChanged.Should().BeFalse(); c.Example.MyChar.Should().Be('D'); }