The MSTest 4 Guide: TestClass, DataRow/DynamicData, the Assert API, TestContext, Parallelism, Analyzers and a Quick Look at TUnit
[ExpectedException], removed in MSTest 4, counted an exception of the same type on any line of the method as success; during the upgrade, Assert.ThrowsExactly and a ParamName check exposed a test that had been green for the wrong reason for years and a rule that was never written. MSTest.Sdk and MTP, the decimal pitfall in DataRow, DynamicData, the Assert API, TestContext, parallelism, analyzers, a quick look at TUnit and the close of the series.
15 Nov 2026
·
13 min
·
5