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;
}
}
}