using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Test.UIAutomation.TestManager; [TestClass] public class MyTestClass { [TestMethod] [TestCase(TestType.Untrusted)] public void MyTestMethod() { // Test code here } }In the above example, the MyTestMethod method is marked as a test case using the TestCaseAttribute. The TestType parameter specifies whether the test is trusted or untrusted. The package library for Microsoft.Test.UIAutomation.TestManager is part of the Windows UI Automation (UIA) framework and can be found in the Microsoft.UIAutomation.WindowsBase NuGet package.