示例#1
0
        public Stream CreateStream()
        {
            var stream = new MemoryStream();

            Ftst.Write(stream, Palette.ToList());
            return(stream);
        }
示例#2
0
            public void ShouldWriteTheExactSameFile() => File.OpenRead("kh2/res/ftst.bin").Using(stream =>
            {
                Helpers.AssertStream(stream, x =>
                {
                    var outStream = new MemoryStream();
                    Ftst.Write(outStream, Ftst.Read(x));

                    return(outStream);
                });
            });
示例#3
0
 public void CheckForLength() => File.OpenRead("kh2/res/ftst.bin").Using(stream =>
 {
     var entries = Ftst.Read(stream);
     Assert.Equal(8, entries.Count);
 });
示例#4
0
 public FtstViewModel(IEnumerable <Bar.Entry> entries) :
     this(Ftst.Read(entries.GetBinaryStream(_entryName)))
 {
 }
示例#5
0
 public void CheckForLength() => Common.FileOpenRead("kh2/res/ftst.bin", stream =>
 {
     var entries = Ftst.Read(stream);
     Assert.Equal(8, entries.Count);
 });