检查函数在库中是否正常工作 [英] Check if the function works properly in library

查看:94
本文介绍了检查函数在库中是否正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在classlibrary.cs中检查该功能是否正常工作?
我正在自己学习,但我的功能无法正常工作.

How to check if the function works properly in classlibrary.cs?
I was learning by myself and my function is not working.

推荐答案

显然,输出应告诉您它是否有效.

通过代码行进行调试,以查看该函数是否正在执行您想要的功能.
Obviously the output should tell you whether it is working or not.

Debug through the lines of code to see if the function is doing what you want it to do.


当认真开发类库时,应与一些测试项目并行开发它们将在开发期间立即运行,并最终测试您的库的所有功能.您也可以使用NUnt进行单元测试,请参见 http://en.wikipedia.org/wiki/NAnt [ ^ ],http://nant.sourceforge.net/ [^ ].

—SA
When you seriously develop your class libraries, you should develop them in parallel with some test projects which will run immediately during development and ultimately test all your library''s features. You can also use NUnt for unit testing, see http://en.wikipedia.org/wiki/NAnt[^], http://nant.sourceforge.net/[^].

—SA


我认为您可以调试代码并查看问题出在哪里.或在此处发布您的功能代码并简要介绍功能逻辑.
I think you can debug your code and see where is the issue. OR post here your function code and brief about the function logic.


这篇关于检查函数在库中是否正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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