Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldThrowForIncorrectTransactionMetadata()
        internal virtual void ShouldThrowForIncorrectTransactionMetadata()
        {
            BoltIOException e = assertThrows(typeof(BoltIOException), () => parseTransactionMetadata(asMapValue(map("tx_metadata", "{key1: 'value1', key2: 'value2'}"))));

            assertTrue(e.CausesFailureMessage());
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldThrowForIncorrectTransactionTimeout()
        internal virtual void ShouldThrowForIncorrectTransactionTimeout()
        {
            BoltIOException e = assertThrows(typeof(BoltIOException), () => parseTransactionTimeout(asMapValue(map("tx_timeout", "15 minutes"))));

            assertTrue(e.CausesFailureMessage());
        }