public void Prig_should_assert_on_generic_types_and_method() { using (new IndirectionsContext()) { // Arrange var expected = "ping"; var fooGenericProxy = new PProxyFooGeneric(); fooGenericProxy.EchoOfTOfTRetT <string, string>().Body = (@this, s) => s; var fooGeneric = (FooGeneric)fooGenericProxy; // Act var actual = fooGeneric.Echo <string, string>(expected); // Assert Assert.AreEqual(expected, actual); } }
public void Prig_should_assert_on_generic_types_and_method() { using (new IndirectionsContext()) { // Arrange var expected = "ping"; var fooGenericProxy = new PProxyFooGeneric(); fooGenericProxy.EchoOfTOfTRetT<string, string>().Body = (@this, s) => s; var fooGeneric = (FooGeneric)fooGenericProxy; // Act var actual = fooGeneric.Echo<string, string>(expected); // Assert Assert.AreEqual(expected, actual); } }