Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldProvideUpdatesWhenNoChangesProvided() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldProvideUpdatesWhenNoChangesProvided()
        {
            // given
            KeyValueMerger merger = new KeyValueMerger(Provider(pair(14, 1), pair(19, 2), pair(128, 3)), Provider(), 4, 4);

            // when
            IList <int> data = Extract(merger);

            // then
            assertEquals(asList(14, 1, 19, 2, 128, 3), data);
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReplaceValuesOnEqualKey() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldReplaceValuesOnEqualKey()
        {
            // given
            KeyValueMerger merger = new KeyValueMerger(Provider(pair(1, 1), pair(3, 1), pair(5, 1)), Provider(pair(2, 2), pair(3, 2), pair(6, 2)), 4, 4);

            // when
            IList <int> data = Extract(merger);

            // then
            assertEquals(asList(1, 1, 2, 2, 3, 2, 5, 1, 6, 2), data);
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldMergeEmptyProviders() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldMergeEmptyProviders()
        {
            // given
            KeyValueMerger merger = new KeyValueMerger(Provider(), Provider(), 4, 4);

            // when
            IList <int> data = Extract(merger);

            // then
            assertEquals(Arrays.asList <int>(), data);
        }