public void iteration_should_have_unique_hash_code() { Scenario.StartNew(this, scenario => { scenario.Given(iteration_has_been_created) .And(project_and_projectInfoServer_has_been_created) .And(project_is_added_to_server) .And(iteration_is_added_to_project); scenario.When("the hashcode of a iteration object is requested"); scenario.Then("then a unique hashcode should be returned", ()=> { var otherIteration = new Iteration(); project.AddIteration(otherIteration); otherIteration.SystemId = Guid.NewGuid().ToString(); iteration.GetHashCode().ShouldNotBe(otherIteration.GetHashCode()); }); }); }