Beispiel #1
0
        public IEnumerable <IMethodLine> GetSourceLocations()
        {
            ISourceLocator            sourceLocator = _sourceLocatorFactory.GetSourceLocator(this);
            IEnumerable <IMethodLine> methodLines   = sourceLocator.GetMethodLines(MdToken);

            //methodLines.Where()
            return(methodLines);
        }
 public void SourceLocatorGetMethodLinesLambdaMethodTest()
 {
     IMethodLine[] methodLines = _iSourceLocator.GetMethodLines((uint)_lambdaMethod.MetadataToken).ToArray();
     Assert.AreEqual(4, methodLines.Length);
 }