public void ShouldReadLineSplitValue() { string rawFile = "a:b"; SpriteSheetFileReader spriteSheetFileReader = new SpriteSheetFileReader(rawFile); spriteSheetFileReader.ReadLineSplitValue().Should().Be("b"); }
public static SpriteSheetData Parse(string rawfile) { SpriteSheetFileReader sfr = new SpriteSheetFileReader(rawfile); SpriteSheetData sd = new SpriteSheetData(sfr); return(sd); }
public void ShouldReadLinesUntil() { string rawFile = "a\nb\nc\nd"; SpriteSheetFileReader spriteSheetFileReader = new SpriteSheetFileReader(rawFile); spriteSheetFileReader.ReadUntil("c"); spriteSheetFileReader.ReadLine().Should().Be("d"); }
public void ShouldReadLines() { string rawFile = "a\nb\nc"; SpriteSheetFileReader spriteSheetFileReader = new SpriteSheetFileReader(rawFile); spriteSheetFileReader.ReadLine().Should().Be("a"); spriteSheetFileReader.ReadLine().Should().Be("b"); spriteSheetFileReader.ReadLine().Should().Be("c"); }