Search  
Tuesday, January 06, 2009 ..:: Documentation ::.. Register  Login
 Links Minimize


  

TestedWithRhinoMocks.png

I'm test-driven!

 NDemo Documentation Minimize

The Following example shows a hello world in NDemo.  The syntax is intended to be similar to NUnit.  Notice how the Demo methods return a Demonstrator object.  This object will be used by the demo runner when it runs the demo.

using NDemo.Framework;

namespace NDemo.Sample.Demos
{
    [DemoFixture]
    public class HelloWorldFixture
    {
        [Demo]
        public Demonstrator HelloWorld()
        {
            HelloWorldForm form = new HelloWorldForm();
            FormDemonstrator demo = new FormDemonstrator(form);

            demo.ClickOn("btnHello").Show("First Click on the Hello Button");

            demo.Highlight("lblWorld").Show("World will then appear here.");

            return demo;
        }
    }
}

  

Copyright (c) 2009 NDemo   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2009 by DotNetNuke Corporation