English 中文(简体)
测试WPF 的应用
原标题:Testing WPF applications

我目前正在为我的第三年学位项目作总结。 我建立了一个使用C#的系统,将Microsoft Access用作后端数据库。 该系统不连接互联网,也不使用当地网络进行任何连接。

我要求采用最佳方法测试这种申请,以便进行充分的测试。

问题回答

我不知道你重新研究什么,以及你的申请如何松散,但就我而言,大多数法典(约90%)都是书写的,以便可以在单位测试中测试,而无需操作。 多国机器设备模式是这方面的一个良好开端,因为它迫使你将国际机器的编码从你的国际机器上移到可进行单位测试的“观点”和“指挥”等单独的班级。

这保证了已经有许多工作,如果你需要进行自动调查,则看看看《2010年视觉演播室》中可提供的标准化的“停止”试验(仅是最终的)。 它们使您能够完全实现用户互动的自动化/模拟。 在模拟中,你可以做Justin提议的内容:从数据库中删除你的申请,并与一个存放处合作。

You have to keep in mind that in order to write really testable code, you have to design your code testable. In my experience it is next to impossible to write Unit Tests for code written without testing intent right from the start. The probably best thing you can do in that case is write integration tests.

But in order to give more clear advice, we need more input. Cheers





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签