Running OpenOffice C# code tests within the Snippet Compiler
January 8th, 2007|
Here is a short info on how to run C# code snippets for OpenOffice programming within the Snippet Compiler. Sometimes you only want to test a method or an interface of the OpenOffice CLI UNO binding, but for every test you probably build a new testproject in Visula Studio. Of course you can also write test implementations for NUnit, but this often not realy necessary while you only want to know how something of CLI works. A great tool for testing your short OpenOffice C# code is the Snippet Compiler. This little tool let you compile and run your little tests without using Visual Studio. Before you can use the CLI assemblies inside your test code you have to add these as references to the Snippet Compiler. Simply go to Tools -> References, select the File System tab page, browse to the OpenOffice CLI assembly folder, select all CLI assemblies, click the Select-Button and then OK (see Screenshot). Now, the Snippet Compiler refresh his cache. After that you can use the CLI assemblies namespace and run your OpenOffice test codes. That’s it Screenshot: Add CLI assemblies Screenshot: Run OpenOffice C# test code |
My Blog 