public void ShouldNotRunBuildIfResultShouldNotBuild() { SetupPreambleExpections(); resultMock.ExpectAndReturn("ShouldRunBuild", false); targetMock.Expect("Activity", ProjectActivity.Sleeping); IIntegrationResult returnedResult = runner.Integrate(request); Assert.AreEqual(result, returnedResult); Assert.IsTrue(Directory.Exists(result.WorkingDirectory)); Assert.IsTrue(Directory.Exists(result.ArtifactDirectory)); mockery.Verify(); }
public void ShouldNotRunBuildIfResultShouldNotBuild() { SetupPreambleExpections(); resultMock.Setup(_result => _result.ShouldRunBuild()).Returns(false).Verifiable(); targetMock.SetupSet(target => target.Activity = ProjectActivity.Sleeping).Verifiable(); IIntegrationResult returnedResult = runner.Integrate(request); Assert.AreEqual(result, returnedResult); Assert.IsTrue(Directory.Exists(result.WorkingDirectory)); Assert.IsTrue(Directory.Exists(result.ArtifactDirectory)); mockery.Verify(); }
public void TearDown() { DoTearDown(); Mockery.Verify(); }
public void TearDown() { mockery.Verify(); }