void FormatMnemonicOptions1(string hexBytes, Code code, int bitness, string formattedString, FormatMnemonicOptions options) { var decoder = Decoder.Create(bitness, new ByteArrayCodeReader(hexBytes)); decoder.Decode(out var instr); Assert.Equal(code, instr.Code); var formatter = MasmFormatterFactory.Create(); var output = new StringBuilderFormatterOutput(); formatter.FormatMnemonic(instr, output, options); var actualFormattedString = output.ToStringAndReset(); #pragma warning disable xUnit2006 // Do not use invalid string equality check // Show the full string without ellipses by using Equal<string>() instead of Equal() Assert.Equal <string>(formattedString, actualFormattedString); #pragma warning restore xUnit2006 // Do not use invalid string equality check }
void Format(int index, InstructionInfo info, string formattedString) => FormatBase(index, info, formattedString, MasmFormatterFactory.Create());
void Test() => TestBase(MasmFormatterFactory.Create());