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