public void SkipsDuplicateNamespaces() { const string ns1 = "Grapevine.Tests.Server"; const string ns2 = "Grapevine.Tests.Client"; var scanner = new RouteScanner(); scanner.Logger = new XUnitLogger(_helper); scanner.ExcludedNamespaces().Count.ShouldBe(1); scanner.Exclude(ns1); scanner.ExcludedNamespaces().Count.ShouldBe(2); scanner.ExcludedNamespaces()[1].ShouldBe(ns1); scanner.Exclude(ns2); scanner.ExcludedNamespaces().Count.ShouldBe(3); scanner.ExcludedNamespaces()[1].ShouldBe(ns1); scanner.ExcludedNamespaces()[2].ShouldBe(ns2); scanner.Exclude(ns1); scanner.ExcludedNamespaces().Count.ShouldBe(3); scanner.ExcludedNamespaces()[1].ShouldBe(ns1); scanner.ExcludedNamespaces()[2].ShouldBe(ns2); }
public void ExcludesNamespaces() { const string ns = "Grapevine.Tests.Server"; var scanner = new RouteScanner(); scanner.ExcludedNamespaces().Count.ShouldBe(0); scanner.Exclude(ns); scanner.ExcludedNamespaces().Count.ShouldBe(1); scanner.ExcludedNamespaces()[0].ShouldBe(ns); }
public void ExcludesNamespaces() { const string ns = "Grapevine.Tests.Server"; var scanner = new RouteScanner(); scanner.Logger = new XUnitLogger(_helper); scanner.ExcludedNamespaces().Count.ShouldBe(1); scanner.Exclude(ns); scanner.ExcludedNamespaces().Count.ShouldBe(2); scanner.ExcludedNamespaces()[1].ShouldBe(ns); }