[Test] public void TestMethod() { int actualValue = 5; int expectedValue = 5; Assert.AreEqual(expectedValue, actualValue); }In this example, the Assert.AreEqual method is used to check if the actual value of a variable called `actualValue` is equal to an expected value of `5`. If the actual value is equal to the expected value, the test passes. The Assert.AreEqual method is part of the Microsoft.VisualStudio.TestPlatform.TestFramework package library.