public void ShouldLoadIntegrationResultFromStateManagerAndReturnLastSuccessfulBuildLabel()
        {
            mockStateManager.ExpectAndReturn("LoadState", SuccessfulResult("success"), "Project1");
            labeller.Project = "Project1";

            Assert.AreEqual("success", labeller.Generate(new IntegrationResult()));
            mockStateManager.Verify();
        }
        public void ShouldLoadIntegrationResultFromStateManagerAndReturnLastSuccessfulBuildLabel()
        {
            mockStateManager.Setup(_manager => _manager.LoadState("Project1")).Returns(SuccessfulResult("success")).Verifiable();
            labeller.Project = "Project1";

            Assert.AreEqual("success", labeller.Generate(new IntegrationResult()));
            mockStateManager.Verify();
        }