コード例 #1
0
        public async Task Listing_Spaces_Ignores_Repositories_With_Invalid_Name()
        {
            Repository.Init(Path.Combine(_rootPath, ",,,"));

            SpacesCollection spaces = await _repository.All();

            Assert.Empty(spaces.GetSpaceNames());
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        public async Task Listing_Spaces_When_None_Exist_Returns_Empty_Collection()
        {
            SpacesCollection spaces = await _repository.All();

            Assert.Empty(spaces.GetSpaceNames());
        }