惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
量子位
M
MIT News - Artificial intelligence
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
博客园 - 【当耐特】
H
Heimdal Security Blog
腾讯CDC
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
Application and Cybersecurity Blog
Application and Cybersecurity Blog
F
Full Disclosure
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threatpost
月光博客
月光博客
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
T
Troy Hunt's Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
D
DataBreaches.Net
O
OpenAI News
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
小众软件
小众软件
V
Vulnerabilities – Threatpost
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
Martin Fowler
Martin Fowler
美团技术团队
P
Privacy International News Feed

博客园 - 155144

GridView和DataFormatString 32.DataReader和output参数的问题 31.动态SQL中使用变量时,可使用存储过程sp_executesql 【求解算法的时间复杂度的具体步骤】 【指数与对数】 30.一个自定义32进制类初稿 【SQL行转列】 29.DataReader相关 【经典SQL语句 】 28.Lc.exe 已退出,代码 -1 27.PowerDesigner中Stereotype的创建 26.UML笔记(UML2.0设计手册) 25.VSS相关 24.GRIDVIEW相关 23.DOTNET中引用相关 22.使用Castle时,如何获取自定义类的单个属性的PropertyAttribute.Column 20-系统分析与设计(第5版) 19-关于用例的几点知识——摘自《道法自然》 18-概念性系统设计
21-ReSharper UnitRun for .net
155144 · 2008-05-18 · via 博客园 - 155144

ReSharper UnitRun is a free add-in for Microsoft Visual Studio 2005 that allows you to automatically run and profile unit tests.

1)Download ReSharper UnitRun from the link below :

          http://www.jetbrains.com/unitrun/download/index.html         

2)Get a free license,

          http://www.jetbrains.com/unitrun/download/registration.html

3)Install the software

       After installed the software, restart your vs2005.A Register window form will appear in the dotnet.Skip it.The another window form ask you enther the user name and key,input your license.Then press submit.

4)Get NUnit or csUnit

ReSharper UnitRun must be used together with NUint or csUnit.

you can get them from the link below:

http://sourceforge.net/

5)Install NUnit

6)Create a project for Test

       A:Create a project with name of "NUnitTest";

       B:Add reference NUnit.framework (NUnit setup path\bin\nunit.framework.dll)

       C:Create a "NumberFixture",

using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;

namespace NUnitTest
{
    [TestFixture]
        public class NumbersFixture
        {
        [Test]
            public void AddTwoNumbers()
            {
                Int32 a = 1;
                Int32 b = 2;
                Int32 sum = a + b;
                Assert.AreEqual(sum, 2);

            }
        }
}

7)Change property of the project NUnitTest

       A.Click "VS2005-Project-Property";

       B.Change:Start Action--Start external program: NUnit setup path + "\bin\nunit-gui.exe"

8)Debug this project.

9)Start NUnit

       A.Open Project: "File-Open project", select "NUnitTest.dll" from Server.Mappath("bin") ;

       B.Click "Run".

If the processbar is green,ok.Red bar means that there are somemistaks.yellow means?sorry, i don't remember.

10)Restart VS2005,you will see a green tag on the left of code area.

11)Click the Tag image

_____________________________________________________________________________________
COPYRIGHT©2008,HTTP://ZEROBUG.CNBLOGS.COM .ALL RIGHTS RESERVED.