Example #1
0
        public void GetSourceFileTest()
        {
            Assert.AreEqual(SourceFilePath, _methodMetadata1.GetSourceFilePath());
            IEnumerable <IMethodLine> sourceLocations = _methodMetadata1.GetSourceLocations();

            Assert.AreEqual(3, sourceLocations.Count());
            IMethodLine methodLine = sourceLocations.First();

            Assert.AreEqual(12, methodLine.StartLine);
            Assert.AreEqual(12, methodLine.EndLine);
            Assert.AreEqual(160, methodLine.StartIndex);
            Assert.AreEqual(220, methodLine.EndIndex);
            Assert.AreEqual(10, methodLine.StartColumn);
            Assert.AreEqual(70, methodLine.EndColumn);
        }