Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldResetMachine() throws org.neo4j.bolt.runtime.BoltConnectionFatality
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void ShouldResetMachine()
        {
            BoltStateMachine          machine = mock(typeof(BoltStateMachine));
            BoltStateMachineV1Context context = NewContext(machine, mock(typeof(BoltStateMachineSPI)));

            context.ResetMachine();

            verify(machine).reset();
        }
Beispiel #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldHandleFailure() throws org.neo4j.bolt.runtime.BoltConnectionFatality
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void ShouldHandleFailure()
        {
            BoltStateMachine          machine = mock(typeof(BoltStateMachine));
            BoltStateMachineV1Context context = NewContext(machine, mock(typeof(BoltStateMachineSPI)));

            Exception cause = new Exception();

            context.HandleFailure(cause, true);

            verify(machine).handleFailure(cause, true);
        }