/// <summary>
 /// Constructs a new test vector.
 /// </summary>
 /// <param name="schemaName">Name of the test schema</param>
 /// <param name="compiler">Compiler used for testing</param>
 public TestVector(string schemaName, DelphiCompiler compiler)
 {
     this.schemaName = schemaName;
     this.compiler   = compiler;
     InitializeResourceSets();
 }
示例#2
0
 /// <summary>
 /// Constructs a new planned compiler invocation.
 /// </summary>
 /// <param name="compiler">The Delphi compiler</param>
 /// <param name="inputFile">Compiler input file, see <see cref="InputFile"/></param>
 /// <returns></returns>
 public static DelphiCompilerOperation Plan(DelphiCompiler compiler, string inputFile) => compiler switch
 {
示例#3
0
 public void Deserialize(IXunitSerializationInfo info)
 {
     messageName = info.GetValue <string>(nameof(messageName));
     compiler    = info.GetValue <DelphiCompiler>(nameof(compiler));
 }
示例#4
0
 /// <summary>
 /// Constructs a new test vector.
 /// </summary>
 /// <param name="validatorName">Name of the test message validator</param>
 /// <param name="compiler">Compiler used for testing</param>
 public TestVector(string validatorName, DelphiCompiler compiler)
 {
     this.validatorName = validatorName;
     this.compiler      = compiler;
     InitializeResourceSets();
 }
示例#5
0
#pragma warning restore CS8618

            /// <summary>
            /// Constructs a new test vector.
            /// </summary>
            /// <param name="messageName">Name of the test message</param>
            /// <param name="compiler">Compiler used for testing</param>
            public ProgramTestVector(string messageName, DelphiCompiler compiler)
            {
                this.messageName = messageName;
                this.compiler    = compiler;
            }