public void TestSetSources() { CatalogManager.SetSources(new[] { _testSource }); CatalogManager.GetSources().Should().Equal(_testSource); }
public void TestRemoveSourceMissing() { _sut.RemoveSource(_testSource).Should().BeFalse(); CatalogManager.GetSources().Should().Equal(CatalogManager.DefaultSource); }
public void TestAddSourceNew() { _sut.AddSource(_testSource).Should().BeTrue(); CatalogManager.GetSources().Should().Equal(CatalogManager.DefaultSource, _testSource); }
public void TestRemoveSource() { _sut.RemoveSource(CatalogManager.DefaultSource).Should().BeTrue(); CatalogManager.GetSources().Should().BeEmpty(); }
public void TestAddSourceExisting() { _sut.AddSource(CatalogManager.DefaultSource).Should().BeFalse(); CatalogManager.GetSources().Should().Equal(CatalogManager.DefaultSource); }