示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("ResultOfMethodCallIgnored") @Test public void shouldNotThrowOnNonInstantiatedClose()
        public virtual void ShouldNotThrowOnNonInstantiatedClose()
        {
            // given
            InstanceSelector <string> selector = selector(NUMBER, "0");

            // when
            selector.Close(int?.parseInt);

            // then
            // good
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCloseAll()
        public virtual void ShouldCloseAll()
        {
            // given
            InstanceSelector <string> selector = SelectorFilledWithOrdinal();

            // when
            MutableInt count = new MutableInt();

            selector.Close(s => count.increment());

            // then
            assertEquals(Enum.GetValues(typeof(IndexSlot)).length, count.intValue());
        }