Ejemplo n.º 1
0
 /// <summary>Constructor.</summary>
 public ToggleRelativeException(ToggleRelativeProblem problem) : base(problem.ToString()) { Problem = problem; }
Ejemplo n.º 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");
 }
Ejemplo n.º 3
0
 /// <summary>Constructor.</summary>
 public ToggleRelativeException(ToggleRelativeProblem problem) : base(problem.ToString())
 {
     Problem = problem;
 }
Ejemplo n.º 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");
 }