/// <summary> /// Returns the file name of the test file for the specified opcode. /// </summary> /// <param name="opcodeSpec">The opcode specification.</param> /// <returns>A filename.</returns> static string GetTestFilename(OpcodeSpec opcodeSpec) { return(SpecWriter.AsValidIdentifier(opcodeSpec.Name + "Tests") + ".generated.cs"); }
/// <summary> /// Registers a new writer with the specified platform ID. /// </summary> /// <param name="platformID">The ID of the platform.</param> /// <param name="writer">The writer instance.</param> public void Register(string platformID, SpecWriter writer) { writers.Add(platformID, writer); }