Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void failToAddSeveralLastComponents()
        internal virtual void FailToAddSeveralLastComponents()
        {
            LifeSupport lifeSupport          = NewLifeSupport();
            Lifecycle   lastComponent        = mock(typeof(Lifecycle));
            Lifecycle   anotherLastComponent = mock(typeof(Lifecycle));

            lifeSupport.Last = lastComponent;
            assertThrows(typeof(System.InvalidOperationException), () => lifeSupport.setLast(anotherLastComponent));
        }