Test Templet

 

using System;
using NUnit.Framework;

namespace apptest
{
    
/// <summary>
    
/// TestTemplet 的摘要说明。
    
/// </summary>

    [TestFixture]
    
public class TestTemplet
    
{
        
public TestTemplet()
        
{
            
//
            
// TODO: 在此处添加构造函数逻辑
            
//
        }


        
在每个测试方法开始/结束时调用

        [Test]
        
public void Test()
        
{

        }


        
类开始/结束时调用

        [Test,Ignore(
"Not ready to test this yet")]
        
public void TestSomething()
        
{
        }

        [Test,ExpectedException(
typeof(ArgumentException))]
        
public void TestForException()
        
{
           
        }




    }

}

posted @ 2006-07-06 22:33  darkblue  阅读(119)  评论(0)    收藏  举报