Beispiel #1
0
 /// <summary>Constructor.</summary>
 public ToggleRelativeException(ToggleRelativeProblem problem) : base(problem.ToString()) { Problem = problem; }
Beispiel #2
0
 private void assertPathToggle(string basePath, string toggledPath, ToggleRelativeProblem expectedProblem)
 {
     try { PathUtil.ToggleRelative(basePath, toggledPath); }
     catch (ToggleRelativeException e) { Assert.AreEqual(expectedProblem, e.Problem, "ToggleRelativeException has the wrong Problem"); return; }
     Assert.Fail("ToggleRelativeException expected");
 }
Beispiel #3
0
 /// <summary>Constructor.</summary>
 public ToggleRelativeException(ToggleRelativeProblem problem) : base(problem.ToString())
 {
     Problem = problem;
 }
Beispiel #4
0
 private void assertPathToggle(string basePath, string toggledPath, ToggleRelativeProblem expectedProblem)
 {
     try { PathUtil.ToggleRelative(basePath, toggledPath); }
     catch (ToggleRelativeException e) { Assert.AreEqual(expectedProblem, e.Problem, "ToggleRelativeException has the wrong Problem"); return; }
     Assert.Fail("ToggleRelativeException expected");
 }