Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldPassAboveCount()
        public virtual void ShouldPassAboveCount()
        {
            // given
            MinimumCountFilter <int> minFilter = new MinimumCountFilter <int>(3);

            ISet <int> input = asSet(1, 2, 3, 4);

            // when
            ISet <int> output = minFilter.Apply(input);

            // then
            assertEquals(input, output);
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldFilterBelowCount()
        public virtual void ShouldFilterBelowCount()
        {
            // given
            MinimumCountFilter <int> minFilter = new MinimumCountFilter <int>(3);

            ISet <int> input = asSet(1, 2);

            // when
            ISet <int> output = minFilter.Apply(input);

            // then
            assertEquals(emptySet(), output);
        }