public void Send_WhenPassedNonExistentMethod_AndMethodMissingExceptions_ThrowsException() { var obj = new ChildClassThatImplMissing(); Action act = () => obj.Send <string>("NotReallyThere", "arg0"); act.Should().Throw <MethodMissingException>(); }
public void Send_WhenPassedNonExistentMethod_CallsMethodMissing() { var obj = new ChildClassThatImplMissing(); obj.Send <string>("BANANA", "arg0").Should().Be("You passed me arg0"); }