Exemple #1
0
    public void TestEmptyRom(string expectedAsm)
    {
        var emptyData = dataFactory.Create();

        emptyData.Apis.AddIfDoesntExist(new SnesApi(emptyData));
        var result = LogWriterHelper.ExportAssembly(emptyData);

        LogWriterHelper.AssertAssemblyOutputEquals(expectedAsm, result, debugWriter);
    }
Exemple #2
0
    public void TestAFewLines()
    {
        var data = CreateSampleData();

        LogWriterHelper.AssertAssemblyOutputEquals(ExpectedRaw, LogWriterHelper.ExportAssembly(data, creator =>
        {
            creator.Settings = new LogWriterSettings
            {
                OutputExtraWhitespace = false
            };
        }), debugWriter);
    }
Exemple #3
0
 public void TestAFewLines()
 {
     LogWriterHelper.AssertAssemblyOutputEquals(ExpectedRaw, LogWriterHelper.ExportAssembly(InputRom));
 }
Exemple #4
0
    public void TestOneLine()
    {
        var exportAssembly = LogWriterHelper.ExportAssembly(dataFactory.Create());

        LogWriterHelper.AssertAssemblyOutputEquals(ExpectedRaw, exportAssembly);
    }