Exemplo n.º 1
0
        protected override void Because()
        {
            var buildEngine = new BuildEngineStub(new BuildToolStub(), null, null);

            buildEngine.BuildRootDirectory = "build";

            working = packageTree.RetrievePackage("castle").WorkingDirectory;

            var buildRoot = new DirectoryInfo(Path.Combine(working.FullName,
                                                           buildEngine.BuildRootDirectory));

            actual = buildEngine.GetBuildDirectory(buildRoot);

            expected = new DirectoryInfo(Path.Combine(working.FullName, @"build\net-3.5\debug"));
        }
Exemplo n.º 2
0
 public void Then_a_directory_not_found_exception_should_be_thrown()
 {
     Assert.Throws <DirectoryNotFoundException>(() => buildEngine.GetBuildDirectory(buildRoot));
 }