using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class MyTests
{
public TestContext TestContext { get; set; }
[TestMethod]
public void MyTest()
{
}
}
Run it from the code by the context menu --> Run Test.
There are more attributed methods like [TestInitialize] and [TestCleanup], etc. that help fine tuning the test environment.
Tip: Define code snippets to create test methods and other code fragments to ease daily work.
Regards
Andi