Ejemplo n.º 1
0
 public void ProblemsWithLocation_NoProblem_Succeeds()
 {
     using (var tempFolder = new TemporaryFolder(MethodBase.GetCurrentMethod().Name))
     {
         var settings = new ControlledNameSettings("SomeCollection");
         _tcManager.Settings = settings;
         Assert.That(_api.ProblemsWithLocation(tempFolder.FolderPath), Is.EqualTo(""));
     }
 }
Ejemplo n.º 2
0
 public void ProblemsWithLocation_TCExists_Fails()
 {
     using (var tempFolder = new TemporaryFolder(MethodBase.GetCurrentMethod().Name))
     {
         var settings = new ControlledNameSettings("SomeCollection");
         _tcManager.Settings = settings;
         Directory.CreateDirectory(Path.Combine(tempFolder.FolderPath, "SomeCollection - TC"));
         Assert.That(_api.ProblemsWithLocation(tempFolder.FolderPath), Is.EqualTo("There is a problem with this location"));
     }
 }