public void WhenHas0Builds_ShouldReturn0BuildingBuilds() { var application = new Application(); var actual = application.GetBuildingBuilds(); Assert.Equal(0, actual.Count()); }
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()); }
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); }
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()); }