Dharmendra Gaur
How to test a Method or a Class, not the whole application in Ants Profiler .....
By Dharmendra Gaur in Web API on Jul 16 2009
  • Dharmendra Gaur
    Jul, 2009 17

    How to test a Method or a Class, not the whole application in Ants Profiler ..... Not in N-Unit

    • 0
  • Dharmendra Gaur
    Jul, 2009 17

    How to test a Method or a Class, not the whole application in Ants Profiler ..... Not in N-Unit

    • 0
  • P Narasimha
    Jul, 2009 17

    Hi First u Install the NUnit Test S/w then click on file menu and Add the project to the Nunit test Application Method or class do like this

    using System;
    using csUnit; using MyProject;
    // MyProject is where the class to be tested exists. namespace example {
      /// <summary>
    /// Summary description for FooTests.   /// </summary>
    [TestFixture]// For Class testfixture declaration    public class FooTests() {
      public FooTests() {
      // nothing to do here
    }
         /// <summary>
    /// Test the set and get methods of the MyClass.Value property
    /// </summary> [Test]//Test foe Omre than one Methods   public void TestValueProperty() {
    MyClass obj = new MyClass();
    Assert.Equals(0, obj.Value);
    obj.Value = 25;
    Assert.Equals(25, obj.Value);
    }
    }
    }

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS