예제 #1
0
            public void WhenHas0Builds_ShouldReturn0BuildingBuilds()
            {
                var application = new Application();

                var actual = application.GetBuildingBuilds();

                Assert.Equal(0, actual.Count());
            }
예제 #2
0
            public void WhenHas0BuildingBuilds_ShouldReturn0BuildingBuilds()
            {
                var builds = new List<Build>();
                builds.Add(new Build()
                {
                    Status = "status"
                });

                var application = new Application();
                application.Builds = builds;

                var actual = application.GetBuildingBuilds();
                Assert.Equal(0, actual.Count());
            }
예제 #3
0
            public void WhenHas1BuildingBuildAnd1OtherBuilds_ShouldReturn1BuildingBuilds()
            {
                var builds = new List<Build>();
                builds.Add(new Build()
                {
                    Status = "status"
                });
                builds.Add(new Build()
                {
                    Status = "building"
                });

                var application = new Application();
                application.Builds = builds;

                var actual = application.GetBuildingBuilds();

                Assert.Equal(1, actual.Count());
                Assert.Equal("building", actual.First().Status);
            }
예제 #4
0
            public void WhenHas1BuildingBuildsWithMixedCaseStatus_ShouldReturn1BuildingBuilds()
            {
                var builds = new List<Build>();
                builds.Add(new Build()
                {
                    Status = "BuIlDiNg"
                });

                var application = new Application();
                application.Builds = builds;

                var actual = application.GetBuildingBuilds();

                Assert.Equal(1, actual.Count());
            }