Ejemplo n.º 1
0
        public void IsRegistered_MatchingMethod()
        {
            var methodInfo = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string) });

            _registry.Register(new[] { new NameBasedRegistrationInfo("Concat", mi => true) }, typeof(SelectExpressionNode));

            var result = _registry.IsRegistered(methodInfo);

            Assert.That(result, Is.True);
        }