Exemplo n.º 1
0
        public override void SpecifyConventions(ConventionSpecification specification)
        {
            specification.SetBefore(RegexInsensitive("^before_each"));

            specification.SetBeforeAll(RegexInsensitive("^before_all"));

            specification.SetAct(RegexInsensitive("^act_each"));

            specification.SetAfter(RegexInsensitive("^after_each"));

            specification.SetAfterAll(RegexInsensitive("^after_all"));

            specification.SetExample(RegexInsensitive("(^it_)|(^specify_)"));

            specification.SetContext(RegexInsensitive("_"));
        }
Exemplo n.º 2
0
        public override void SpecifyConventions(ConventionSpecification specification)
        {
            specification.SetBefore(RegexInsensitive("^before_each"));

            specification.SetBeforeAll(RegexInsensitive("^before_all"));

            specification.SetAct(RegexInsensitive("^act_each"));

            specification.SetAfter(RegexInsensitive("^after_each"));

            specification.SetAfterAll(RegexInsensitive("^after_all"));

            specification.SetExample(RegexInsensitive("(^it_)|(^specify_)"));

            specification.SetContext(RegexInsensitive("_"));
            //anything that doesn't match is considered a helper method and is never directly invoked
        }