我可以将Nunit与Visual Basic 6.0集成吗? [英] Can I Integrate Nunit With Visual Basic 6.0 ?

查看:70
本文介绍了我可以将Nunit与Visual Basic 6.0集成吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想知道是否可以将Nunit与Visual Basic 6.0集成,因为我需要为我的VB6.0项目提供单元测试工具。



我听说Nunit非常适合.NET,有人可以帮助我吗?



PS:我用Google搜索,找不到相关的答案。



谢谢!

Hi All,

I was wondering whether I could integrate Nunit with Visual basic 6.0 since I am in need of a unit testing tool for my VB6.0 project.

I heard Nunit was great for .NET , can some one help me out here?

PS: I googled , couldn't find any relevant answers.

Thank you!

推荐答案

如果要测试的VB6是一个DLL,然后您可以通过在.NET项目中将COM引用添加到DLL并针对包装层运行测试来为每个DLL函数构建.NET包装器。包装层只能传递参数/结果和输出。



如果VB6代码不是DLL,你可以调用/调用单位在测试DLL中测试过吗?



最终,如果您需要文档,那么自己编写测试工具并自动生成结果报告可能会更多。
If the VB6 to be tested is a DLL then you can build a .NET wrapper to each DLL function by adding a COM reference in a .NET project to the DLL and run the tests against the wrapper layer. The wrapper layer should do no more than pass arguments/results in and out.

If the VB6 code is not a DLL, can you call/invoke the units to be tested in a test DLL?

Ultimately it might be more work than writing a test harness yourself and automating result reports if you need documentation.

这篇关于我可以将Nunit与Visual Basic 6.0集成吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆