Microsoft.VisualStudio.Editor.Mocks.TextSnapshotMock.CreateNextSnapshot C# (CSharp) Method

CreateNextSnapshot() public method

public CreateNextSnapshot ( string content, Microsoft.VisualStudio.Editor.Mocks.TextChangeMock change ) : TextSnapshotMock
content string
change Microsoft.VisualStudio.Editor.Mocks.TextChangeMock
return TextSnapshotMock
        public TextSnapshotMock CreateNextSnapshot(string content, TextChangeMock change) {
            Change = change;
            TextVersionMock nextVersion = _version.CreateNextVersion(change);
            TextSnapshotMock nextSnapshot = new TextSnapshotMock(content, TextBuffer, nextVersion);

            return nextSnapshot;
        }