public void HasHostName_GivenDoesNotHaveHostName_ReturnsFalse() { var hostDistributor = new HostDistributor(); hostDistributor.AddHost("https://www.somehost.com"); Assert.IsFalse(hostDistributor.HasHost("https://www.somehost2.com")); }
public void HasHostName_GivenHasHostName_ReturnsTrue() { var hostDistributor = new HostDistributor(); hostDistributor.AddHost("https://www.somehost.com"); Assert.IsTrue(hostDistributor.HasHost("https://www.somehost.com")); }
public void RemoveHost_GivenHasHostName_RemovesHostName() { var hostDistributor = new HostDistributor(); hostDistributor.AddHost("https://www.somehost.com"); hostDistributor.RemoveHost("https://www.somehost.com"); Assert.IsFalse(hostDistributor.HasHost("https://www.somehost.com")); }