Пример #1
0
        public void MapToBuildStatus_SingleCompletedBuildItem_ReturnsCorrectBuildStatus(TfsBuildStatus tfsBuildStatus, TfsBuildResult tfsBuildResult, BuildStatus expected)
        {
            var sut = new TfsBuildItem {
                Status = tfsBuildStatus, Result = tfsBuildResult
            };

            var result = sut.MapToBuildStatus();

            Assert.AreEqual(expected, result);
        }
Пример #2
0
        public void MapToBuildStatus_SingleInProgressBuildItem_ReturnsRunningBuildStatus()
        {
            var sut = new TfsBuildItem {
                Status = TfsBuildStatus.InProgress
            };

            var result = sut.MapToBuildStatus();

            Assert.AreEqual(BuildStatus.Running, result);
        }