예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldProcessResetMessage() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void ShouldProcessResetMessage()
        {
            when(_context.resetMachine()).thenReturn(true);                 // reset successful
            BoltStateMachineState newState = _state.process(ResetMessage.INSTANCE, _context);

            assertEquals(_readyState, newState);
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldProcessResetMessageWithPerndingIgnore() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void ShouldProcessResetMessageWithPerndingIgnore()
        {
            when(_context.resetMachine()).thenReturn(true);                 // reset successful
            _connectionState.markIgnored();
            assertTrue(_connectionState.hasPendingIgnore());

            BoltStateMachineState newState = _state.process(ResetMessage.INSTANCE, _context);

            assertEquals(_readyState, newState);
            assertFalse(_connectionState.hasPendingIgnore());
        }