public void TestPrimarySites() { //get all sites var sites = iisManager.GetPrimarySites(includeOnlyStartedSites: false); Assert.IsTrue(sites.Any()); //get all sites excluding stopped sites sites = iisManager.GetPrimarySites(includeOnlyStartedSites: true); Assert.IsTrue(sites.Any()); }