public static void Equal(Dir expected, Dir actual, bool compareContents = true) { var diff = actual.Diff(expected, compareContents); if (diff.NoDiff) { return; } throw new DirMismatchException(expected.LoadPath, actual.LoadPath, diff); }