tag:blogger.com,1999:blog-10946087.post8784773412173693702..comments2024-01-22T21:56:45.032-08:00Comments on MetaDeveloper: Unit Tests with Iron PythonDavid Seruyangehttp://www.blogger.com/profile/02586023781945095350noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-10946087.post-49623366892877509252008-05-21T12:25:00.000-07:002008-05-21T12:25:00.000-07:00Introspecting .NET objects from IronPython is real...Introspecting .NET objects from IronPython is really easy.<BR/><BR/>dir(someObject)<BR/><BR/>returns a list of strings of member names (public and protected) of that object. <BR/><BR/>help(someObject.someMethod)<BR/><BR/>can also be useful sometimes.<BR/><BR/>Lots of other easy reflection techniques (hasattr, getattr and setattr for example).<BR/><BR/>Experimenting from the interactive interpreter will give you a feel for what is possible.Michael Foordhttps://www.blogger.com/profile/06229713779852499022noreply@blogger.comtag:blogger.com,1999:blog-10946087.post-52137821381121199622008-05-21T11:13:00.000-07:002008-05-21T11:13:00.000-07:00Do you have any experience with testing existing ....Do you have any experience with testing existing .NET code and assemblies with IronPython?<BR/><BR/>How would I go about reflecting and introspecting elements to see what I can do if I don't have access to all of the code?darthflatushttps://www.blogger.com/profile/16731172910115197153noreply@blogger.comtag:blogger.com,1999:blog-10946087.post-82885726405818206632008-03-26T17:21:00.000-07:002008-03-26T17:21:00.000-07:00Hmmm... we use unittest with IronPython 1.1.1 and ...Hmmm... we use unittest with IronPython 1.1.1 and don't have any 'BaseException' problems.<BR/><BR/>You're better off with IronPython 2 for a host of other reasons though.Michael Foordhttps://www.blogger.com/profile/06229713779852499022noreply@blogger.com