The code from the original version of the article has been updated. The Spectre of Dumb Typos lies in wait for us all. Specifically:
- The constructor method is "%OnNew", not "OnNew".
- There was a typo in one of the method calls.
- There was some design confusion on whether "ExerciseMethod" should return a value or not, so apparently I compromised by doing both.
- Since I was editing it anyway, I adopted the best-practice of putting the classes in a namespace.
- I added a test, "TestNative", that isn't strictly a "unit test" and is more of an "integration test" or "system test" and made a call directly to the default implementation of Article.MyClass to provide an example of the behavior outside of the test harness.
- Log in to post comments