Ejemplo n.º 1
0
 public void SetupContext()
 {
     Matcher      = MethodMatcherTestHelper.GetMethodNameMatcher <MultiWordTestContext>("Foo");
     FoundMatches = Matcher.GetMatches("Foo Bar Baz");
     Partial      = FoundMatches.OfType <PartialMatch>().FirstOrDefault();
     Exact        = FoundMatches.OfType <ExactMatch>().FirstOrDefault();
 }
Ejemplo n.º 2
0
        public void should_match_a_negative_decimal()
        {
            Matcher = MethodMatcherTestHelper.GetMethodNameMatcher <Numeric_matching_test_context>("method_takes_a_decimal");
            var matches = Matcher.GetMatches("method takes a decimal -42");

            matches.Count().ShouldBe(1);
            matches.First().ParamValues.First().Value.ShouldEqual(-42m);
        }