TEST(BookmarkTest,BookmarkFolderChild)
{
	CBookmarkFolder BookmarkFolderParent = CBookmarkFolder::Create(L"Test");
	CBookmarkFolder BookmarkFolder = CBookmarkFolder::Create(L"Test name");

	BookmarkFolderParent.InsertBookmarkFolder(BookmarkFolder);

	ASSERT_EQ(true,BookmarkFolderParent.HasChildFolder());

	auto itr = BookmarkFolderParent.begin();

	CBookmarkFolder ChildBookmarkFolder = boost::get<CBookmarkFolder>(*itr);

	EXPECT_EQ(BookmarkFolder.GetName(),ChildBookmarkFolder.GetName());
}
TEST(BookmarkTest,BookmarkChild)
{
	CBookmarkFolder BookmarkFolderParent = CBookmarkFolder::Create(L"Test");
	CBookmark Bookmark(L"Test name",L"Test location",L"Test description");

	BookmarkFolderParent.InsertBookmark(Bookmark);

	EXPECT_EQ(false,BookmarkFolderParent.HasChildFolder());

	auto itr = BookmarkFolderParent.begin();

	CBookmark ChildBookmark = boost::get<CBookmark>(*itr);

	EXPECT_EQ(Bookmark.GetName(),ChildBookmark.GetName());
	EXPECT_EQ(Bookmark.GetLocation(),ChildBookmark.GetLocation());
	EXPECT_EQ(Bookmark.GetDescription(),ChildBookmark.GetDescription());
}