public async Task LoadAsync_SpecifiesEncoding()
        {
            // Arrange
            var loader = new EmptyTextLoader("file.cshtml");

            // Act
            var textAndVersion = await loader.LoadTextAndVersionAsync(default, default, default);
예제 #2
0
        private DynamicFileInfo CreateEmptyInfo(Key key)
        {
            var filename   = key.FilePath + ".g.cs";
            var textLoader = new EmptyTextLoader(filename);

            return(new DynamicFileInfo(filename, SourceCodeKind.Regular, textLoader, _factory.CreateEmpty()));
        }