public void GivenFixtureWhenStateIsNotNullAndContentNullThenIsSnapshotNeededReturnsFalse() { // //Arrange // var fixtureValidation = new FixtureValidation(); // //Act // bool isSnapshotNeeded = fixtureValidation.IsSnapshotNeeded( _resourceFacadeMock.Object, new FixtureState()); // //Assert // Assert.IsFalse(isSnapshotNeeded); }
public void GivenFixtureWhenStateIsNullThenIsSnapshotNeededReturnsTrue() { // //Arrange // var fixtureValidation = new FixtureValidation(); // //Act // bool isSnapshotNeeded = fixtureValidation.IsSnapshotNeeded( It.IsAny <IResourceFacade>(), null); // //Assert // Assert.IsTrue(isSnapshotNeeded); }
public void GivenFixtureWhenSequenceDifferentThanStateSequenceThenIsSnapshotNeededReturnsTrue() { // //Arrange // _resourceFacadeMock.SetupGet(o => o.Content).Returns(new Summary { Sequence = 4 }); var fixtureValidation = new FixtureValidation(); // //Act // bool isSnapshotNeeded = fixtureValidation.IsSnapshotNeeded( _resourceFacadeMock.Object, new FixtureState { Sequence = 3 }); // //Assert // Assert.IsTrue(isSnapshotNeeded); }