WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

NUnit 2.4.7 How to use Ignore Attribute?

View: New views
2 Messages — Rating Filter:   Alert me  

NUnit 2.4.7 How to use Ignore Attribute?

by sunbanu :: Rate this Message:

| View Threaded | Show Only this Message

Hi I am currently using this tool for testing my class methods

I have following scenerio for testing:

[TestFixture]
    public class MyClassTests : MyClassMethods
    {  
       [Test]
       public void _01_Test()
       {  
           
               string strA = valA;
               Assert.IsTrue(strA  != null);
       }

       [Test]
       public void _02_Test()
       {  
           
               string strB = valB;
               Assert.IsTrue(strB  != null);
       }


valA and  valB are  populated from the base class by MethodValA() and MethodValB()

My Question is :
How to Ignore _01Test when I run _02Test in NUnit Test runner and similarly How to Ignore _02Test  when I run _01Test ? Can we use Ignore Attribute.

Please help me




  }



Re: NUnit 2.4.7 How to use Ignore Attribute?

by belbzm :: Rate this Message:

| View Threaded | Show Only this Message

Cheapest Gold @ www.Belrion.com
10kGold for 62usd ! Secure Manual Powerlevel + Cheap Accounts Too !
While Stock Last ^^
Paypal World Seller + Macfee Secured Site ^^
USE WOW GOLD COUPON CODE for 5% Bonus: wow2277