public async Task ReturnsTrue_WhenRepoCreated() { 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); }
public void Setup() { _repo = new FileRepo(new ObjectFactory()); DirectoryExtensions.ForceDelete(_path); RepoAssertions.DoesNotExist(_path, _method); }
public void ReturnsFalse_WhenDirectoryDoesNotExist() { RepoAssertions.DoesNotExist(_path, _method); _repo.Exists().Should().BeFalse(); }