public static void TestParseText2() { var modData = new BsnesTraceLogImporter.ModificationData(); var importer = new BsnesTraceLogImporter(null); importer.ParseTextLine(Example2, modData); Assert.Equal(0xc3091a, modData.SnesAddress); Assert.Equal(0xF001, modData.DirectPage); Assert.Equal(0xAF, modData.DataBank); Assert.False(modData.MFlagSet); Assert.True(modData.XFlagSet); }
public static void TestParseText3() { var modData = new BsnesTraceLogImporter.ModificationData(); var importer = new BsnesTraceLogImporter(null); importer.ParseTextLine(Example3, modData); Assert.Equal(0x90c860, modData.SnesAddress); Assert.Equal(0x2134, modData.DirectPage); Assert.Equal(0x9A, modData.DataBank); Assert.True(modData.MFlagSet); Assert.True(modData.XFlagSet); }
public static void TestParseText1() { var modData = new BsnesTraceLogImporter.ModificationData(); var importer = new BsnesTraceLogImporter(null); importer.ParseTextLine(example1, modData); Assert.Equal(0x28cde, modData.SnesAddress); Assert.Equal(0x0000, modData.DirectPage); Assert.Equal(0x02, modData.DataBank); Assert.True(modData.MFlagSet); Assert.False(modData.XFlagSet); }
public static void TestParseText() { var sampleLine = BsnesTraceLogImporter.SampleLineText; var modData = new BsnesTraceLogImporter.ModificationData(); BsnesTraceLogImporter.ParseTextLine(sampleLine, modData); Assert.Equal(0x28cde, modData.SnesAddress); Assert.Equal(0x0000, modData.DirectPage); Assert.Equal(0x02, modData.DataBank); Assert.False(modData.XFlagSet); Assert.False(modData.MFlagSet); }