public MockTextSnapshot(MockTextBuffer buffer, string text, MockTextSnapshot prevVersion, params ITextChange[] changes)
 {
     _text    = text;
     _buffer  = buffer;
     _version = new MockTextVersion(prevVersion.Version.VersionNumber + 1, this);
     ((MockTextVersion)prevVersion.Version).SetNext(_version, changes);
 }
Esempio n. 2
0
 internal void SetNext(MockTextVersion nextVersion, params ITextChange[] changes)
 {
     _nextVersion = nextVersion;
     _changes     = new MockNormalizedTextChangeCollection(changes);
 }
 public MockTextSnapshot(MockTextBuffer buffer, string text)
 {
     _text    = text;
     _buffer  = buffer;
     _version = new MockTextVersion(0, this);
 }