示例#1
0
        public async Task CreatesDirectory_WhenNoRepoExists()
        {
            RepoAssertions.DoesNotExist(_path, _method);
            bool ok = await _repo.InitAsync();

            ok.Should().BeTrue($"{_method} should return true after the repo was created");

            RepoAssertions.Exists(_path, _method);
        }
示例#2
0
        public async Task ReturnsTrue_WhenDirectoryExists()
        {
            bool ok = await _repo.InitAsync();

            ok.Should().BeTrue();
            _repo.Exists().Should().BeTrue();
        }