コード例 #1
0
        public void SetUp()
        {
            this.fileSystem = new TestIFileSystemService();

            this.platform = new TestIPlatformService {
                ReadFileFunc  = x => new MemoryStream(),
                WriteFileFunc = x => new MemoryStream()
            };
            this.streamBuilder = new TestIStreamBuilder();
            this.service       = new DefaultHuffmanEncodingService(fileSystem, platform, streamBuilder);
        }
コード例 #2
0
 public void SetUp()
 {
     this.fileSystem = new TestIFileSystemService();
     this.platform   = new TestIPlatformService();
     this.service    = new DefaultHuffmanEncodingService(fileSystem, platform, new DefaultStreamBuilder());
 }