Exemplo n.º 1
0
 public void IsNotEmptyPassesWithNonEmptyDirectoryUsingDirectoryInfo()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsNotEmpty(td.directoryInformation);
     }
 }
Exemplo n.º 2
0
 public void IsNotEmptyPassesWithNonEmptyDirectoryUsingStringPath()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", true))
     {
         DirectoryAssert.IsNotEmpty(td.directoryName);
     }
 }
Exemplo n.º 3
0
 public void IsNotEmptyFailsWithInvalidDirectory()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", false))
     {
         DirectoryAssert.IsNotEmpty(td.directoryName + "INVALID");
     }
 }
Exemplo n.º 4
0
 public void IsNotEmptyFailsWithEmptyDirectoryUsingStringPath()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", false))
     {
         DirectoryAssert.IsNotEmpty(td.directoryName);
     }
 }
Exemplo n.º 5
0
 public void IsNotEmptyFailsWithEmptyDirectoryUsingDirectoryInfo()
 {
     using (TestDirectory td = new TestDirectory("ParentDirectory", false))
     {
         DirectoryAssert.IsNotEmpty(td.directoryInformation);
     }
 }
Exemplo n.º 6
0
        public void ExportMapsTo_RegisterOneWayMapping_SimpleObjects()
        {
            if (Directory.Exists("maps"))
            {
                Directory.Delete("maps", true);
            }

            _mapper.ExportMapsTo("maps");
            _mapper.InitializeMap();

            DirectoryAssert.IsNotEmpty("maps");
        }
Exemplo n.º 7
0
 public void IsNotEmptyThrowsUsingNull()
 {
     DirectoryAssert.IsNotEmpty((DirectoryInfo)null);
 }