Beispiel #1
0
        public void ShouldReadLineSplitValue()
        {
            string rawFile = "a:b";
            SpriteSheetFileReader spriteSheetFileReader = new SpriteSheetFileReader(rawFile);

            spriteSheetFileReader.ReadLineSplitValue().Should().Be("b");
        }
Beispiel #2
0
        public static SpriteSheetData Parse(string rawfile)
        {
            SpriteSheetFileReader sfr = new SpriteSheetFileReader(rawfile);
            SpriteSheetData       sd  = new SpriteSheetData(sfr);

            return(sd);
        }
Beispiel #3
0
        public void ShouldReadLinesUntil()
        {
            string rawFile = "a\nb\nc\nd";
            SpriteSheetFileReader spriteSheetFileReader = new SpriteSheetFileReader(rawFile);

            spriteSheetFileReader.ReadUntil("c");
            spriteSheetFileReader.ReadLine().Should().Be("d");
        }
Beispiel #4
0
        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");
        }