Beispiel #1
0
 public MockTextBuffer(string content, IContentType contentType, string filename = null) {
     _snapshot = new MockTextSnapshot(this, content);
     _contentType = contentType;
     if (filename == null) {
         filename = Path.Combine(TestData.GetTempPath(), Path.GetRandomFileName(), "file.py");
     }
     Properties[typeof(ITextDocument)] = new MockTextDocument(this, filename);
 }
Beispiel #2
0
 public MockTextBuffer(string content, IContentType contentType, string filename = null)
 {
     _snapshot    = new MockTextSnapshot(this, content);
     _contentType = contentType;
     if (filename == null)
     {
         filename = Path.Combine(TestData.GetTempPath(), Path.GetRandomFileName(), "file.py");
     }
     Properties[typeof(ITextDocument)] = new MockTextDocument(this, filename);
 }
 public MockTextBuffer(string content, IContentType contentType, string filename = "C:\\fob.py")
 {
     _snapshot    = new MockTextSnapshot(this, content);
     _contentType = contentType;
     Properties[typeof(ITextDocument)] = new MockTextDocument(this, filename);
 }