Esempio n. 1
0
        public void Send_WhenPassedNonExistentMethod_AndMethodMissingExceptions_ThrowsException()
        {
            var    obj = new ChildClassThatImplMissing();
            Action act = () => obj.Send <string>("NotReallyThere", "arg0");

            act.Should().Throw <MethodMissingException>();
        }
Esempio n. 2
0
        public void Send_WhenPassedNonExistentMethod_CallsMethodMissing()
        {
            var obj = new ChildClassThatImplMissing();

            obj.Send <string>("BANANA", "arg0").Should().Be("You passed me arg0");
        }