Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public void TearDown()
 {
     DoTearDown();
     Mockery.Verify();
 }
 public void TearDown()
 {
     mockery.Verify();
 }