public async Task Listing_Spaces_Ignores_Repositories_With_Invalid_Name() { Repository.Init(Path.Combine(_rootPath, ",,,")); SpacesCollection spaces = await _repository.All(); Assert.Empty(spaces.GetSpaceNames()); }
public async Task Listing_Spaces_With_Non_Git_Repository_Ignores_Folder() { await _repository.Add(new Space(new SpaceName("a"))); Directory.CreateDirectory(Path.Combine(_rootPath, "b")); SpacesCollection spaces = await _repository.All(); var names = spaces.GetSpaceNames(); Assert.Single(names); Assert.Equal("a", names.First().ToString()); }
public async Task Listing_Spaces_When_None_Exist_Returns_Empty_Collection() { SpacesCollection spaces = await _repository.All(); Assert.Empty(spaces.GetSpaceNames()); }