public void assure_constructor_clones_repository_given_it_has_not_been_cloned_already()
{
Scenario.StartNew(this, scenario =>
{
GitChangesetRepository rep = null;
scenario.Given("We want to use the git plugin and the repository is not cloned",
assure_repository_is_not_already_cloned);
Console.WriteLine(repositoryUrl);
scenario.When("we try to use the git plugin", () =>
rep = new GitChangesetRepository(repositoryUrl)
);
scenario.Then("assure the repository is cloned after we call the constructor", () =>
{
Directory.Exists(reposDir).ShouldBeTrue();
rep.ShouldNotBeNull();
});
});
}