To test your data, you can add something like this to a manager script:
using System;
using Models.Core;
namespace Models
{
[Serializable]
public class Script : Model, ITest
{
public void Run()
{
bool testHasFailed = true;
if (testHasFailed)
throw new Exception("oh dear");
}
}
}
Things to note:
IModel
s which implement the ITest
interface. Therefore, the script must inherit from Model
ITest
is defined in the Models.Core
namespace--run-tests
command line switch is provided. If you don’t know what the command line is, this will not affect you.