Skip to content

Commit 5f1ff82

Browse files
authored
Fix expected and actual being swapped (#43670)
1 parent 9b37638 commit 5f1ff82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/testing/mstest-analyzers/mstest0026.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ Ensure that arguments do not contain `(?.)` or `?[]` when passed to the assertio
6161

6262
```csharp
6363
Company? company = GetCompany();
64-
Assert.AreEqual(company?.Name, "Contoso"); // MSTEST0026
64+
Assert.AreEqual("Contoso", company?.Name); // MSTEST0026
6565
StringAssert.Contains(company?.Address, "Brazil"); // MSTEST0026
6666
6767
// Fixed code
6868
Assert.IsNotNull(company);
69-
Assert.AreEqual(company.Name, "Contoso");
69+
Assert.AreEqual("Contoso", company.Name);
7070
StringAssert.Contains(company.Address, "Brazil");
7171
```
7272

0 commit comments

Comments
 (0)