Getting started with white using visual C#2005

Oct 22, 2009 at 6:23 AM

Hi,

   I want to start using white with visual c#2005. I have downloaded white, careated a class library in c#2005 editor, as i read in help i made reference to those two dlls whitecore and white Nunit, but when i try writing code in editor , im unable to get those keywords like [TestClass()] , Application etc, it throws error. So please let me know if im wrong in making reference to dll's or etc.

 

 

Thanks in advance.

Oct 22, 2009 at 7:15 AM
Edited Oct 22, 2009 at 7:26 AM

reverence also dll nunit.framework from white folder

add "using NUnit.Framework;" to your class

 

for example:

 

using NUnit.Framework;

namespace MyNameSpace
{
  [TestFixture(Description = "") ]
  public class TestClass
  {
 
    [SetUp]
    public void Setup()
    {
     
    }

    /// <summary>
    /// Tears down.
    /// </summary>
    [TearDown]
    public void TearDown()
    {
     
    }

    [Test(Description = "")]
    public void ASimpleTest()

    {

    }

  }

}  

 

 

to use class Application you need to add

using Core;

 

 

 

Oct 23, 2009 at 5:27 AM

Thanks a lot it worked for me, but i still have a doubt, i have written following code but its not really launching the application, but build is successful. I have paisted just a code to launch the application here, but i have proper code in my editor so it has no syntax problem.

 

 

namespace ClassLibrary1{
  [TestFixture]

public class Class1
  {
      Application ap;

    [SetUp]
    public void Setup()
    {   ap = Application.Launch("C:\\Program Files\\a\\abc.exe");

 }