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/test/quick-start-test-driven-development-with-test-explorer.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Test-driven development
3
3
description: Learn how to develop a tested method in C# using Microsoft Test Framework, which you can easily adapt for other languages or test frameworks, such as NUnit.
4
-
ms.date: 12/11/2025
4
+
ms.date: 04/22/2026
5
5
ms.topic: how-to
6
6
ms.author: mikejo
7
7
@@ -24,7 +24,11 @@ This article demonstrates how to develop a tested method in C# using Microsoft T
24
24
25
25
Name the test project **MathTests**.
26
26
27
-
::: moniker range=">=vs-2022"
27
+
::: moniker range="visualstudio"
28
+
:::image type="content" source="../test/media/visualstudio/test-driven-development-ide.png" alt-text="Screenshot that shows the new code and test projects." lightbox="../test/media/visualstudio/test-driven-development-ide.png":::
29
+
::: moniker-end
30
+
31
+
::: moniker range="vs-2022"
28
32

29
33
::: moniker-end
30
34
@@ -84,7 +88,11 @@ This article demonstrates how to develop a tested method in C# using Microsoft T
84
88
85
89
The details of the test appear in the **Test Detail Summary** pane.
86
90
87
-
::: moniker range=">=vs-2022"
91
+
::: moniker range="visualstudio"
92
+
:::image type="content" source="media/visualstudio/test-driven-development-test-detail-summary.png" alt-text="Screenshot of the Test Detail Summary in Test Explorer." lightbox="media/visualstudio/test-driven-development-test-detail-summary.png":::
93
+
::: moniker-end
94
+
95
+
::: moniker range="vs-2022"
88
96

89
97
::: moniker-end
90
98
@@ -108,7 +116,11 @@ At this point, you've created a test and a stub that you can modify so that the
108
116
109
117
Thesolutionbuilds, andthetestrunsandpasses.
110
118
111
-
:::monikerrange=">=vs-2022"
119
+
:::monikerrange="visualstudio"
120
+
:::imagetype="content"source="../test/media/visualstudio/test-driven-development-passed-test.png"alt-text="Screenshot of the Test Explorer showing a passing test."lightbox="../test/media/visualstudio/test-driven-development-passed-test.png":::
:::imagetype="content"source="../test/media/visualstudio/test-driven-development-three-passed-tests.png"alt-text="Screenshot of Test Explorer showing three passed tests."lightbox="../test/media/visualstudio/test-driven-development-three-passed-tests.png":::
0 commit comments