示例#1
0
        public void HowManyTimesHasFixedSomeoneElsesBuild_SomoeneElseFixedMyBuild_Zero()
        {
            var currentBuildDefinitionOrderedChronoligically = new List <BuildStatus>
            {
                new BuildStatus {
                    BuildStatusEnum = BuildStatusEnum.Broken, RequestedBy = "currentUser"
                },
                new BuildStatus {
                    BuildStatusEnum = BuildStatusEnum.Working, RequestedBy = "someoneElse"
                }
            };

            Assert.AreEqual(0, FixedSomeoneElsesBuild.HowManyTimesHasFixedSomeoneElsesBuildForBuild(currentBuildDefinitionOrderedChronoligically, "currentUser"));
        }
示例#2
0
        public void AcrossBuilds_BrokenBuildInProjectOneAndFixedInProjectTwo_NotFixed()
        {
            var currentBuildDefinitionOrderedChronoligically = new List <BuildStatus>
            {
                new BuildStatus {
                    BuildStatusEnum = BuildStatusEnum.Broken, BuildDefinitionId = "1", RequestedBy = "someoneElse"
                },
                new BuildStatus {
                    BuildStatusEnum = BuildStatusEnum.Working, BuildDefinitionId = "2", RequestedBy = "currentUser"
                }
            };

            Assert.AreEqual(0, FixedSomeoneElsesBuild.HowManyTimesFixedSomeoneElsesBuildForAllBuilds(currentBuildDefinitionOrderedChronoligically, "currentUser"));
        }
示例#3
0
        public void HowManyTimesHasFixedSomeoneElsesBuild_NoBuilds_Zero()
        {
            var currentBuildDefinitionOrderedChronoligically = new List <BuildStatus>();

            Assert.AreEqual(0, FixedSomeoneElsesBuild.HowManyTimesHasFixedSomeoneElsesBuildForBuild(currentBuildDefinitionOrderedChronoligically, "currentUser"));
        }