Пример #1
0
        public void find_by_method_if_it_exists()
        {
            var candidates = new ChainSearch
            {
                TypeMode   = TypeSearchMode.Any,
                Type       = typeof(SimpleInputModel),
                MethodName = "DoSomething"
            }.FindCandidatesByType(theGraph).SelectMany(x => x);

            candidates.Any(x => x.FirstCall().Description == "SimpleInputModel.DoSomething(InputModel2 model) : void")
            .ShouldBeTrue();
        }