public void RelativeFolder_Theory(FolderArgs args) { if (args.Expected == null) { Trap.Exception(() => new RelativeFolderPath(args.Source)) .ShouldNotBeNull(); } else { var folder = new RelativeFolderPath(args.Source); folder.ToString() .ShouldEqual(args.Expected); } }
public void AbsoluteFolder_Theory(FolderArgs args) { if (args.Expected == null) { Trap.Exception(() => new AbsoluteFolderPath(args.Source)) .ShouldNotBeNull(); } else { var folder = new AbsoluteFolderPath(args.Source); Debug.Print(folder.ToString()); folder.ToString() .ShouldEqual(args.Expected); } }