public void ContainsElementsByType() { var folder = new Folder(); var item1 = new Item(); var item2 = new AppVeyorBuild(); folder.Add(item1); Assert.IsFalse(folder.ContainsElements(typeof(AppVeyorBuild))); item1.Add(item2); Assert.IsTrue(folder.ContainsElements(typeof(AppVeyorBuild))); }
public void TestMethod1() { var appVeyorBuild = new AppVeyorBuild { AccountName = "AnyStatus", ProjectSlug = "api" }; var appVeyorBuildMonitor = new AppVeyorBuildMonitor(); appVeyorBuildMonitor.Handle(appVeyorBuild); Assert.AreNotEqual(State.None, appVeyorBuild.State, "State is None."); Assert.AreNotEqual(State.Error, appVeyorBuild.State, "State is Error."); }
public async Task AppVeyor_DefaultBranch() { var appVeyorBuild = new AppVeyorBuild { AccountName = "AnyStatus", ProjectSlug = "api" }; var appVeyorBuildMonitor = new AppVeyorBuildStatus(); var request = HealthCheckRequest.Create(appVeyorBuild); await appVeyorBuildMonitor.Handle(request, CancellationToken.None); Assert.AreNotEqual(State.None, appVeyorBuild.State, "State is None."); Assert.AreNotEqual(State.Error, appVeyorBuild.State, "State is Error."); }