Beispiel #1
0
        public string GetSourceFilePath()
        {
            ISourceLocator sourceLocator  = _sourceLocatorFactory.GetSourceLocator(this);
            string         sourceFilePath = sourceLocator.GetSourceFilePath(MdToken);

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

            //methodLines.Where()
            return(methodLines);
        }
        public void SetUp()
        {
            CompileTestCode();
            LoadMethodInfos();

            _sourceLocatorFactory  = new SourceLocatorFactory();
            _iSourceLocatorFactory = _sourceLocatorFactory;
            _iSourceLocator        = _iSourceLocatorFactory.GetSourceLocator(_tempAssemblyFile);
        }
        public void SetUp()
        {
            CompileTestCode();
            LoadMethodInfos();

            _sourceLocatorFactory = new SourceLocatorFactory();
            _iSourceLocatorFactory = _sourceLocatorFactory;
            _iSourceLocator = _iSourceLocatorFactory.GetSourceLocator(_tempAssemblyFile);
        }
        public ISourceLocator GetSourceLocator(MethodMetadata methodMd)
        {
            ISourceLocator sourceLocator = GetSourceLocator(methodMd.Class.Module.FilePath);

            return(sourceLocator);
        }