Shared Unit Tests with MSTest
问题 I have approximately 5-6 reports, they are structured the same, using Watin, I'm testing each one of these reports. I have a shared test, I call "ReportBaseTests".. public class ReportBaseTests { public string MenuName { get; set; } public ReportBaseTests(string name) { this.MenuName = name; } [TestMethod] public void Perform_Invalid_Date_Range() { } } but in each of my tests, I have... [TestClass] public class Report1Tests : ReportBaseTests { public Report1Tests() : base("Report 1") { } }