mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
499 B
19 lines
499 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
using System.IO;
|
|
using SixLabors.ImageSharp.IO;
|
|
|
|
namespace SixLabors.ImageSharp.Tests.TestUtilities
|
|
{
|
|
internal class SingleStreamFileSystem : IFileSystem
|
|
{
|
|
private readonly Stream stream;
|
|
|
|
public SingleStreamFileSystem(Stream stream) => this.stream = stream;
|
|
|
|
Stream IFileSystem.Create(string path) => this.stream;
|
|
|
|
Stream IFileSystem.OpenRead(string path) => this.stream;
|
|
}
|
|
}
|
|
|