diff --git a/docs/core/testing/mstest-analyzers/mstest0026.md b/docs/core/testing/mstest-analyzers/mstest0026.md index a9c44cf24c2ca..e2eee0ebd6e96 100644 --- a/docs/core/testing/mstest-analyzers/mstest0026.md +++ b/docs/core/testing/mstest-analyzers/mstest0026.md @@ -61,12 +61,12 @@ Ensure that arguments do not contain `(?.)` or `?[]` when passed to the assertio ```csharp Company? company = GetCompany(); -Assert.AreEqual(company?.Name, "Contoso"); // MSTEST0026 +Assert.AreEqual("Contoso", company?.Name); // MSTEST0026 StringAssert.Contains(company?.Address, "Brazil"); // MSTEST0026 // Fixed code Assert.IsNotNull(company); -Assert.AreEqual(company.Name, "Contoso"); +Assert.AreEqual("Contoso", company.Name); StringAssert.Contains(company.Address, "Brazil"); ```