如何将单元测试项目添加到现有的Windows窗体项目中

编程入门 行业动态 更新时间:2024-10-26 06:36:49
本文介绍了如何将单元测试项目添加到现有的Windows窗体项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我对单元测试一无所知。我想要做的是我有一个Windows应用程序。我想为它建立一个UNIT测试项目。我将单元测试项目添加到当前解决方案中,我得到了这个。

Hi, I don't know anything regarding unit testing. What i want to do is that i have a windows application. I want to set up a UNIT testing project for it. I added unit test project to the current solution, and i got this.

using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { } } }

但我该怎么办?请帮助我!

But what shall i do from here? Pls help me out !

推荐答案

尝试如何:创建单元测试项目 [ ^ ]。

我添加了一个单元测试项目,参考了项目 I added a unit test project, referred the project

更多推荐

如何将单元测试项目添加到现有的Windows窗体项目中

本文发布于:2023-11-14 11:28:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587091.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   窗体   如何将   单元测试   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!