We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b37638 commit 5f1ff82Copy full SHA for 5f1ff82
docs/core/testing/mstest-analyzers/mstest0026.md
@@ -61,12 +61,12 @@ Ensure that arguments do not contain `(?.)` or `?[]` when passed to the assertio
61
62
```csharp
63
Company? company = GetCompany();
64
-Assert.AreEqual(company?.Name, "Contoso"); // MSTEST0026
+Assert.AreEqual("Contoso", company?.Name); // MSTEST0026
65
StringAssert.Contains(company?.Address, "Brazil"); // MSTEST0026
66
67
// Fixed code
68
Assert.IsNotNull(company);
69
-Assert.AreEqual(company.Name, "Contoso");
+Assert.AreEqual("Contoso", company.Name);
70
StringAssert.Contains(company.Address, "Brazil");
71
```
72
0 commit comments