public void SourceFilePathTest() { string sourceFilePath = _iSourceLocator.GetSourceFilePath((uint)_methodMethodInfo.MetadataToken); Assert.AreEqual(_tempSourceFile.ToLower(), sourceFilePath.ToLower()); sourceFilePath = _iSourceLocator.GetSourceFilePath((uint)_methodWithCommentsMethodInfo.MetadataToken); Assert.AreEqual(_tempSourceFile.ToLower(), sourceFilePath.ToLower()); sourceFilePath = _iSourceLocator.GetSourceFilePath((uint)_methodWithLambdaMethodInfo.MetadataToken); Assert.AreEqual(_tempSourceFile.ToLower(), sourceFilePath.ToLower()); sourceFilePath = _iSourceLocator.GetSourceFilePath((uint)_lambdaMethod.MetadataToken); Assert.AreEqual(_tempSourceFile.ToLower(), sourceFilePath.ToLower()); }
public string GetSourceFilePath() { ISourceLocator sourceLocator = _sourceLocatorFactory.GetSourceLocator(this); string sourceFilePath = sourceLocator.GetSourceFilePath(MdToken); return(sourceFilePath); }