Example #1
0
        public TextBufferMock(string content, string contentTypeName)
        {
            ContentType = new ContentTypeMock(contentTypeName, new IContentType[] { ContentTypeMock.TextContentType });
            TextVersionMock initialVersion = new TextVersionMock(this, 0, content.Length);

            CurrentSnapshot = new TextSnapshotMock(content, this, initialVersion);
        }
Example #2
0
 public TextBufferMock(string content, string contentTypeName)
 {
     ContentType = new ContentTypeMock(contentTypeName, new IContentType[] { ContentTypeMock.TextContentType });
     TextVersionMock initialVersion = new TextVersionMock(this, 0, content.Length);
     CurrentSnapshot = new TextSnapshotMock(content, this, initialVersion);
 }