You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/testing/unit-testing-mstest-migration-from-v1-to-v3.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
# MSTest v3 Migration Guide
3
3
4
4
## Overview
5
+
5
6
This guide assists users in upgrading their MSTest projects from v0/v1 to MSTest v3. MSTest v3 introduces new features, improvements, and some breaking changes.
6
7
7
8
---
@@ -74,6 +75,7 @@ Remove the `Microsoft.VisualStudio.QualityTools.UnitTestFramework` reference fro
74
75
## Breaking Changes and Removed APIs
75
76
76
77
### Assertion Overloads
78
+
77
79
MSTest v3 removes certain `Assert` overloads that accept object types to promote type-safe assertions. Update tests using these overloads to specify types explicitly.
78
80
79
81
**Example**:
@@ -87,6 +89,7 @@ Assert.AreEqual<int>(expectedInt, actualInt); // specify the type
87
89
```
88
90
89
91
### DataRowAttribute Updates
92
+
90
93
The `DataRowAttribute` constructors have been simplified in MSTest v3. Update parameterized tests using `DataRow` to align with the revised constructors.
0 commit comments