public Stream CreateStream() { var stream = new MemoryStream(); Ftst.Write(stream, Palette.ToList()); return(stream); }
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); }); });
public void CheckForLength() => File.OpenRead("kh2/res/ftst.bin").Using(stream => { var entries = Ftst.Read(stream); Assert.Equal(8, entries.Count); });
public FtstViewModel(IEnumerable <Bar.Entry> entries) : this(Ftst.Read(entries.GetBinaryStream(_entryName))) { }
public void CheckForLength() => Common.FileOpenRead("kh2/res/ftst.bin", stream => { var entries = Ftst.Read(stream); Assert.Equal(8, entries.Count); });