public virtual void test_concatToList_differentTypes() { IEnumerable <int> iterable1 = Arrays.asList(1, 2, 3); IEnumerable <double> iterable2 = Arrays.asList(10d, 20d, 30d); ImmutableList <Number> test = Guavate.concatToList(iterable1, iterable2); assertEquals(test, ImmutableList.of(1, 2, 3, 10d, 20d, 30d)); }
//------------------------------------------------------------------------- public virtual void test_concatToList() { IEnumerable <string> iterable1 = Arrays.asList("a", "b", "c"); IEnumerable <string> iterable2 = Arrays.asList("d", "e", "f"); IList <string> test = Guavate.concatToList(iterable1, iterable2); assertEquals(test, ImmutableList.of("a", "b", "c", "d", "e", "f")); }