opened
RussKie
username_0
### Actual:

```
 Non_numeric_TabIndex_should_produce_diagnostics
   Source: WinFormsAccessibilityTests.NonNumericTabIndexValueRule.cs line 18
   Duration: 4.5 sec

  Message: 
    Assert.AreEqual failed. Expected:<0>. Actual:<14>. Context: Diagnostics of test state
    Mismatch between number of diagnostics returned, expected "0" actual "14"
    
    Diagnostics:
    // /0/Test0.cs(8,28): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
    DiagnosticResult.CompilerError("CS0234").WithSpan(8, 28, 8, 33).WithArguments("Forms", "System.Windows"),
    // /0/Test0.cs(8,70): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
    DiagnosticResult.CompilerError("CS0234").WithSpan(8, 70, 8, 75).WithArguments("Forms", "System.Windows"),
    // /0/Test0.cs(10,28): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
    DiagnosticResult.CompilerError("CS0234").WithSpan(10, 28, 10, 33).WithArguments("Forms", "System.Windows"),
    // /0/Test0.cs(10,70): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
    DiagnosticResult.CompilerError("CS0234").WithSpan(10, 70, 10, 75).WithArguments("Forms", "System.Windows"),
    // /0/Test0.cs(11,32): warning WF0001: Control 'button2' has unexpected TabIndex value: 'INDEX'.
    VerifyCS.Diagnostic(ControlTabOrderAnalyzer.WF0001).WithSpan(11, 32, 11, 37).WithArguments("button2", "INDEX"),
    // /0/Test0.cs(15,18): error CS1061: 'Form1' does not contain a definition for 'AutoScaleDimensions' and no accessible extension method 'AutoScaleDimensions' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(15, 18, 15, 37).WithArguments("WinFormsApp1.Form1", "AutoScaleDimensions"),
    // /0/Test0.cs(16,18): error CS1061: 'Form1' does not contain a definition for 'AutoScaleMode' and no accessible extension method 'AutoScaleMode' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(16, 18, 16, 31).WithArguments("WinFormsApp1.Form1", "AutoScaleMode"),
    // /0/Test0.cs(16,34): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
    DiagnosticResult.CompilerError("CS0234").WithSpan(16, 34, 16, 54).WithArguments("Forms", "System.Windows"),
    // /0/Test0.cs(17,18): error CS1061: 'Form1' does not contain a definition for 'ClientSize' and no accessible extension method 'ClientSize' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(17, 18, 17, 28).WithArguments("WinFormsApp1.Form1", "ClientSize"),
    // /0/Test0.cs(18,18): error CS1061: 'Form1' does not contain a definition for 'Controls' and no accessible extension method 'Controls' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(18, 18, 18, 26).WithArguments("WinFormsApp1.Form1", "Controls"),
    // /0/Test0.cs(19,18): error CS1061: 'Form1' does not contain a definition for 'Controls' and no accessible extension method 'Controls' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(19, 18, 19, 26).WithArguments("WinFormsApp1.Form1", "Controls"),
    // /0/Test0.cs(20,18): error CS1061: 'Form1' does not contain a definition for 'Name' and no accessible extension method 'Name' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(20, 18, 20, 22).WithArguments("WinFormsApp1.Form1", "Name"),
    // /0/Test0.cs(21,18): error CS1061: 'Form1' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(21, 18, 21, 22).WithArguments("WinFormsApp1.Form1", "Text"),
    // /0/Test0.cs(22,18): error CS1061: 'Form1' does not contain a definition for 'ResumeLayout' and no accessible extension method 'ResumeLayout' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?)
    DiagnosticResult.CompilerError("CS1061").WithSpan(22, 18, 22, 30).WithArguments("WinFormsApp1.Form1", "ResumeLayout"),
    
    
  Stack Trace: 
    MSTestVerifier.Equal[T](T expected, T actual, String message) line 41
    AnalyzerTest`1.VerifyDiagnosticResults(IEnumerable`1 actualResults, ImmutableArray`1 analyzers, DiagnosticResult[] expectedResults, IVerifier verifier) line 336
    AnalyzerTest`1.VerifyDiagnosticsAsync(EvaluatedProjectState primaryProject, ImmutableArray`1 additionalProjects, DiagnosticResult[] expected, IVerifier verifier, CancellationToken cancellationToken) line 249
    CodeFixTest`1.RunAsync(CancellationToken cancellationToken) line 238
    CSharpCodeFixVerifier`2.VerifyAnalyzerAsync(String source, DiagnosticResult[] expected) line 37
    NonNumericTabIndexValueRule.Non_numeric_TabIndex_should_produce_diagnostics() line 47
```

### Expected:

```
 Non_numeric_TabIndex_should_produce_diagnostics
   Source: WinFormsAccessibilityTests.NonNumericTabIndexValueRule.cs line 18
   Duration: 4.5 sec

  Message: 
    Assert.AreEqual failed. Expected:<0>. Actual:<1>. Context: Diagnostics of test state
    Mismatch between number of diagnostics returned, expected "0" actual "1"
    
    Diagnostics:
    // /0/Test0.cs(11,32): warning WF0001: Control 'button2' has unexpected TabIndex value: 'INDEX'.
    VerifyCS.Diagnostic(ControlTabOrderAnalyzer.WF0001).WithSpan(11, 32, 11, 37).WithArguments("button2", "INDEX"),

```
Failing tests
issue
created
sharwell
username_1
```
await new VerifyCS.Test
{
  ReferenceAssemblies = ReferenceAssemblies.NetFramework.Net472.DefaultWithWinForms,
  TestState =
  {
    Sources = { ... },
  },
  FixedState =
  {
    Sources = { ... },
  },
}.RunAsync();
```
comment
closed
RussKie
username_0
issue
created
RussKie
username_0
Thank you!
comment