Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void testFailureWithV2Value(org.neo4j.values.AnyValue value, String description) throws Exception
        private void TestFailureWithV2Value(AnyValue value, string description)
        {
            _connection.connect(_address).send(_util.defaultAcceptedVersions());
            assertThat(_connection, _util.eventuallyReceivesSelectedProtocolVersion());
            _connection.send(_util.chunk(new InitMessage(USER_AGENT, Collections.emptyMap())));
            assertThat(_connection, _util.eventuallyReceives(msgSuccess()));

            _connection.send(_util.chunk(64, CreateRunWithV2Value(value)));

            assertThat(_connection, _util.eventuallyReceives(msgFailure(Org.Neo4j.Kernel.Api.Exceptions.Status_Statement.TypeError, description + " values cannot be unpacked with this version of bolt.")));
            assertThat(_connection, eventuallyDisconnects());
        }