Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalyzerTest{T}"/> class.
 /// </summary>
 /// <param name="compilation">An instance of <see cref="TestableCompilationData"/> to share between all tests in this class.</param>
 protected AnalyzerTest(TestableCompilationData compilation) : base(compilation)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompilationTest"/> class.
 /// </summary>
 /// <param name="sources">An array of <see cref="string"/>s to be used as initial sources of <see cref="CSharpSyntaxTree"/>s for the <see cref="Compilation"/>.</param>
 protected CompilationTest(params string[]?sources)
 {
     Compilation = TestableCompilationData.Create(sources);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompilationTest"/> class.
 /// </summary>
 /// <param name="compilation">An instance of <see cref="TestableCompilationData"/> to share between all tests in this class.</param>
 protected CompilationTest(TestableCompilationData compilation)
 {
     Compilation = compilation;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompilationTest"/> class.
 /// </summary>
 protected CompilationTest()
 {
     Compilation = TestableCompilationData.Create();
 }