public void GivenConstraintSpecification_WhenBuild_ThenPreviousObjectStateIsNull() { var specification = new PartSpecificationBuilder(this.Session).WithDescription("specification").Build(); this.Session.Derive(); Assert.Null(specification.PreviousPartSpecificationState); }
public void GivenConstraintSpecification_WhenBuild_ThenLastObjectStateEqualsCurrencObjectState() { var specification = new PartSpecificationBuilder(this.Session).WithDescription("specification").Build(); this.Session.Derive(); Assert.Equal(new PartSpecificationStates(this.Session).Created, specification.PartSpecificationState); Assert.Equal(specification.LastPartSpecificationState, specification.PartSpecificationState); }