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