//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldThrowWhenOneOfMultipleBookmarksIsMalformed() internal virtual void ShouldThrowWhenOneOfMultipleBookmarksIsMalformed() { MapValue @params = @params("neo4j:bookmark:v1:tx67", asList("neo4j:bookmark:v1:tx99", "neo4j:bookmark:v1:tx12", "neo4j:bookmark:www:tx99")); BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(@params)); assertTrue(e.CausesFailureMessage()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldThrowWhenSingleBookmarkIsMalformed() internal virtual void ShouldThrowWhenSingleBookmarkIsMalformed() { MapValue @params = @params("neo4j:strange-bookmark:v1:tx6", null); BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(@params)); assertTrue(e.CausesFailureMessage()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldThrowWhenMultipleBookmarksIsNotAListOfStrings() internal virtual void ShouldThrowWhenMultipleBookmarksIsNotAListOfStrings() { MapValue @params = @params("neo4j:bookmark:v1:tx67", asList(new string[] { "neo4j:bookmark:v1:tx50" }, new object[] { "neo4j:bookmark:v1:tx89" })); BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(@params)); assertTrue(e.CausesFailureMessage()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldFailWhenSingleBookmarkHasExtraneousTrailingCharacters() internal virtual void ShouldFailWhenSingleBookmarkHasExtraneousTrailingCharacters() { string bookmarkString = "neo4j:bookmark:v1:tx1234supercalifragilisticexpialidocious"; BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(SingletonMap("bookmark", bookmarkString))); assertTrue(e.CausesFailureMessage()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldFailWhenNoNumberFollowsThePrefixInSingleBookmark() internal virtual void ShouldFailWhenNoNumberFollowsThePrefixInSingleBookmark() { string bookmarkString = "neo4j:bookmark:v1:tx"; BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(SingletonMap("bookmark", bookmarkString))); assertTrue(e.CausesFailureMessage()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldFailWhenParsingBadlyFormattedSingleBookmark() internal virtual void ShouldFailWhenParsingBadlyFormattedSingleBookmark() { string bookmarkString = "neo4q:markbook:v9:xt998"; BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(SingletonMap("bookmark", bookmarkString))); assertTrue(e.CausesFailureMessage()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldFailWhenParsingBadlyFormattedMultipleBookmarks() internal virtual void ShouldFailWhenParsingBadlyFormattedMultipleBookmarks() { string bookmarkString = "neo4j:bookmark:v1:tx998"; string wrongBookmarkString = "neo4q:markbook:v9:xt998"; BookmarkFormatException e = assertThrows(typeof(BookmarkFormatException), () => Bookmark.FromParamsOrNull(SingletonMap("bookmarks", asList(bookmarkString, wrongBookmarkString)))); assertTrue(e.CausesFailureMessage()); }