Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void changeSuspendedState() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ChangeSuspendedState()
        {
            ToSuspendedStateConflict.set(_lifeCycle);
            assertEquals(ShouldEndInState, _lifeCycle.status);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpServer() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void SetUpServer()
        {
            _lifeCycle = new StateAwareSuspendableLifeCycle(NullLogProvider.Instance.getLog("log"));
            setInitialState(_lifeCycle, FromState);
            FromSuspendedState.set(_lifeCycle);
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpServer() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void SetUpServer()
        {
            _lifeCycle = new StateAwareSuspendableLifeCycle((new AssertableLogProvider(false)).getLog("log"));
            setInitialState(_lifeCycle, FromState);
            FromSuspendedState.set(_lifeCycle);
        }