I'm kind a newbie in .net stuff, however I'm developing a same project in two languages, C++ and C#; nothing too complicated, just a couple of classes in each project that basically do the same.
Now, I need to make a single test project for both sets of code, so my question is how can I make a project, most likely a console project, in which I can include the c# classes along with the c++ classes.
When I run the console project I want to be able to do something like:
I hope you can understand what I mean.
As long as the C++ is fully managed, you can call it from another .NET assembly written in any language.
For testing however, I would recommend going with a test framework like NUnit or MbUnit instead of writing your own in a console application. They will provide you with a much more robust testing environment.
由于它是.NET,难道不能只添加引用和using
语句,然后使用“ / cpp”或“ / csharp”选项吗?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.