private void AssertSignature(string sExp, params DataType[] args) { var arch = new MipsBe32Architecture(new ServiceContainer(), "mips-be-32", new Dictionary <string, object>()); var cc = new MipsCallingConvention(arch); var ccr = new CallingConventionEmitter(); cc.Generate(ccr, null, null, args.ToList()); Assert.AreEqual(sExp.Trim(), ccr.ToString()); }
private void AssertSignature(string sExp, params DataType[] args) { var arch = new MipsBe32Architecture(); var cc = new MipsCallingConvention(arch); var ccr = new CallingConventionEmitter(); cc.Generate(ccr, null, null, args.ToList()); Assert.AreEqual(sExp.Trim(), ccr.ToString()); }
private void AssertSignature(string sExp, params Argument_v1[] args) { var arch = new MipsBe32Architecture(); var tser = new TypeDeserializer(); var mipsps = new MipsProcedureSerializer(arch, tser, null); var sig = mipsps.Deserialize(new SerializedSignature { Arguments = args }, arch.CreateFrame()); var sArgs = string.Join(", ", sig.Parameters.Select(p => RenderArg(p.Storage))); Assert.AreEqual(sExp.Trim(), sArgs); }