Exemplo n.º 1
0
        public void ConstructorSetsProperty()
        {
            ContainerForExampleWithDefault o = new ContainerForExampleWithDefault();

            o.IsDirty.Should().BeTrue();
            o.Example.MyChar.Should().Be('D');
        }
Exemplo n.º 2
0
        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');
        }