
2.Ignore与Explicity:Ignore属性表示在NUnit中Run Test的时候忽略标记为Ignore的方法;标记为Explicity的测试方法,当前仅当在被单独选中时才Run。


Code
using System;
using System.Text;
using NUnit.Framework;
namespace NUnitTest
{
[TestFixture]
public class CaculatorTest
{
private Caculator cac;
private int a;
private int b;
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/