Here are the examples of the csharp api NUnit.Framework.DirectoryAssert.DoesNotExist(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
19
Source : SimpleFileExtractorTests.cs
with GNU General Public License v3.0
from HicServices
with GNU General Public License v3.0
from HicServices
[Test]
public void OneFile()
{
_extractor.Directories = false;
_extractor.Pattern = "blah.*";
_extractor.Check(new ThrowImmediatelyCheckNotifier());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
_extractor.MoveAll(_outDir,new ThrowImmediatelyDataLoadEventListener(),new GracefulCancellationToken());
Filereplacedert.Exists(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub1"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub2"));
}
19
Source : SimpleFileExtractorTests.cs
with GNU General Public License v3.0
from HicServices
with GNU General Public License v3.0
from HicServices
[Test]
public void OneDir()
{
_extractor.Directories = true;
_extractor.Pattern = "*1";
_extractor.Check(new ThrowImmediatelyCheckNotifier());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
_extractor.MoveAll(_outDir,new ThrowImmediatelyDataLoadEventListener(),new GracefulCancellationToken());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
Directoryreplacedert.Exists(Path.Combine(_outDir.FullName,"Sub1"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub2"));
}
19
Source : SimpleFileExtractorTests.cs
with GNU General Public License v3.0
from HicServices
with GNU General Public License v3.0
from HicServices
[Test]
public void PatientBothDirs()
{
_extractor.PerPatient = true;
_extractor.Directories = true;
_extractor.Pattern = "$p";
_extractor.Check(new ThrowImmediatelyCheckNotifier());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
_extractor.MovePatient("Sub1","Rel1",_outDir,new ThrowImmediatelyDataLoadEventListener(){ThrowOnWarning=true},new GracefulCancellationToken());
_extractor.MovePatient("Sub2","Rel2",_outDir,new ThrowImmediatelyDataLoadEventListener(){ThrowOnWarning=true},new GracefulCancellationToken());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
Directoryreplacedert.Exists(Path.Combine(_outDir.FullName,"Rel1"));
Directoryreplacedert.Exists(Path.Combine(_outDir.FullName,"Rel2"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub1"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub2"));
}
19
Source : SimpleFileExtractorTests.cs
with GNU General Public License v3.0
from HicServices
with GNU General Public License v3.0
from HicServices
[Test]
public void PatientDirs()
{
_extractor.PerPatient = true;
_extractor.Directories = true;
_extractor.Pattern = "$p";
_extractor.Check(new ThrowImmediatelyCheckNotifier());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
_extractor.MovePatient("Sub1","Rel1",_outDir,new ThrowImmediatelyDataLoadEventListener(){ThrowOnWarning=true},new GracefulCancellationToken());
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah.txt"));
Filereplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"blah2.txt"));
Directoryreplacedert.Exists(Path.Combine(_outDir.FullName,"Rel1"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Rel2"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub1"));
Directoryreplacedert.DoesNotExist(Path.Combine(_outDir.FullName,"Sub2"));
}