public void can_initialize() { var mooDir = new MooDir(PathToTemp("FooBar")); PathToTemp("FooBar").AsDir().Exists().Should(Be.False); mooDir.Initialize(); PathToTemp("FooBar").AsDir().Exists().Should(Be.True); PathToTemp("FooBar", "packages").AsDir().Exists().Should(Be.True); // unpacked packages go here PathToTemp("FooBar", "cache").AsDir().Exists().Should(Be.True); // .nupkg's are cached here PathToTemp("FooBar", "bin").AsDir().Exists().Should(Be.True); // this should be added to the user's PATH to run tools mooDir.PackageDirectory.ShouldEqual(PathToTemp("FooBar", "packages")); mooDir.CacheDirectory.ShouldEqual(PathToTemp("FooBar", "cache")); mooDir.BinDirectory.ShouldEqual(PathToTemp("FooBar", "bin")); }
public void Before() { base.BeforeEach(); dir = new MooDir(PathToTemp("MyMooDir")); dir.Initialize(); }