public void Cloned_path_data_should_not_be_same_item() { var path = new PathData(page, item); var clone = path.Clone(); clone.ShouldNotBeSameAs(path); clone.QueryParameters.ShouldNotBeSameAs(path.QueryParameters); }
public void Cloned_path_data_has_same_values() { var path = new PathData(page, item) { Action = "hello", Argument = "world", Ignore = true, IsCacheable = false, IsPubliclyAvailable = true, IsRewritable = false, TemplateUrl = "asdf" }; var clone = path.Clone(); path.Action.ShouldBe(clone.Action); path.Argument.ShouldBe(clone.Argument); path.CurrentItem.ShouldBe(clone.CurrentItem); path.CurrentPage.ShouldBe(clone.CurrentPage); path.ID.ShouldBe(clone.ID); path.Ignore.ShouldBe(clone.Ignore); path.IsCacheable.ShouldBe(clone.IsCacheable); path.IsPubliclyAvailable.ShouldBe(clone.IsPubliclyAvailable); path.IsRewritable.ShouldBe(clone.IsRewritable); path.PageID.ShouldBe(clone.PageID); path.Path.ShouldBe(clone.Path); path.QueryParameters.Count.ShouldBe(clone.QueryParameters.Count); path.StopID.ShouldBe(clone.StopID); path.StopItem.ShouldBe(clone.StopItem); path.TemplateUrl.ShouldBe(clone.TemplateUrl); }