Exemplo n.º 1
0
        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"); });
        }
Exemplo n.º 2
0
        public void SlugFieldConstructorTest()
        {
            var target = new SlugField(new Widgets.TextArea());

            Assert.IsInstanceOfType(target.Widget, typeof(Widgets.TextArea));
        }
Exemplo n.º 3
0
 public void SlugFieldConstructorTest1()
 {
     SlugField target = new SlugField();
     // No error is a pass
 }