Esempio n. 1
0
        public void ValidateFindMethodsThatDoNotUsesArraySlicesInBody()
        {
            var typeToFind = DefinitionFinder.FindType(typeof(ArraySlice <>));
            var methods    = Weaver.FindMethodsUsingArraySlices(typeToFind)
                             .Where(x => x.Name.StartsWith("DoNot") && x.DeclaringType.Name == "ControlWeavingAtMethodLevel");

            Assert.Equal(2, methods.Count());
        }