public virtual void test_andThen() { ObjLongFunction <int, string> fn1 = (a, b) => a + "=" + b; ObjLongFunction <int, string> fn2 = fn1.andThen(str => "[" + str + "]"); assertEquals(fn1.apply(2, 3L), "2=3"); assertEquals(fn2.apply(2, 3L), "[2=3]"); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(expectedExceptions = NullPointerException.class) public void test_andThen_null() public virtual void test_andThen_null() { ObjLongFunction <int, string> fn1 = (a, b) => a + "=" + b; fn1.andThen(null); }