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);
 }
 public MockTextSnapshot(MockTextBuffer buffer, string text)
 {
     _text    = text;
     _buffer  = buffer;
     _version = new MockTextVersion(0, this);
 }