public void DebuggerSourceMap_Assign_Item() { var stackFrame = new StackFrame { Id = 1, Name = "TestFrame" }; DebuggerSourceMap.Assign(stackFrame, "item", "more"); Assert.Equal("item", stackFrame.Item); Assert.Equal("more", stackFrame.More); }
public void DebuggerSourceMap_Assign_Null_SourceRange() { var stackFrame = new StackFrame { Id = 1, Name = "TestFrame" }; DebuggerSourceMap.Assign(stackFrame, null); Assert.Null(stackFrame.Designer); Assert.Null(stackFrame.Source); Assert.Null(stackFrame.Line); Assert.Null(stackFrame.EndLine); Assert.Null(stackFrame.Column); Assert.Null(stackFrame.EndColumn); }
public void DebuggerSourceMap_Equals_True_With_Resources() { var stackFrame = new StackFrame { Id = 1, Name = "TestFrame" }; var sourceRange = new SourceRange { Designer = "testDesigner", Path = "path/test.dialog", StartPoint = new SourcePoint(0, 0), EndPoint = new SourcePoint(10, 10) }; DebuggerSourceMap.Assign(stackFrame, sourceRange); Assert.True(DebuggerSourceMap.Equals(stackFrame, sourceRange)); }
public void DebuggerSourceMap_Assign_SourceRange() { var stackFrame = new StackFrame { Id = 1, Name = "TestFrame" }; var sourceRange = new SourceRange { Designer = "testDesigner", Path = "test.path", StartPoint = new SourcePoint(0, 0), EndPoint = new SourcePoint(10, 10) }; DebuggerSourceMap.Assign(stackFrame, sourceRange); Assert.Equal(sourceRange.Designer, stackFrame.Designer); Assert.Equal(sourceRange.Path, stackFrame.Source.Path); Assert.Equal(sourceRange.StartPoint.LineIndex, stackFrame.Line); Assert.Equal(sourceRange.EndPoint.LineIndex, stackFrame.EndLine); Assert.Equal(sourceRange.StartPoint.CharIndex, stackFrame.Column); Assert.Equal(sourceRange.EndPoint.CharIndex, stackFrame.EndColumn); }