public void CleanTest() { var target = new SlugField(); // OK values target.Clean("this-is-slug"); target.Clean("thisisok"); // Bad values AssertExtras.Raises <ValidationException>(delegate() { target.Clean("this is not"); }); }
public void SlugFieldConstructorTest() { var target = new SlugField(new Widgets.TextArea()); Assert.IsInstanceOfType(target.Widget, typeof(Widgets.TextArea)); }
public void SlugFieldConstructorTest1() { SlugField target = new SlugField(); // No error is a pass }