コード例 #1
0
        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);
        }
コード例 #2
0
 public void Setup()
 {
     _repo = new FileRepo(new ObjectFactory());
     DirectoryExtensions.ForceDelete(_path);
     RepoAssertions.DoesNotExist(_path, _method);
 }
コード例 #3
0
ファイル: ExistsMethod.cs プロジェクト: slater1/dullgit
 public void ReturnsFalse_WhenDirectoryDoesNotExist()
 {
     RepoAssertions.DoesNotExist(_path, _method);
     _repo.Exists().Should().BeFalse();
 }