Skip to content

Commit ece2907

Browse files
authored
Remove references to TDD (dotnet#10635)
Fixes dotnet#8266 Note that in the referenced issue there is disagreement over the best way to do TDD. THis PR removes references to that approach, rather than taking a stand.
1 parent 067019c commit ece2907

9 files changed

+18
-18
lines changed

docs/core/testing/unit-testing-fsharp-with-dotnet-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Inside the solution directory, create a *MathService* directory. The directory a
2525
/MathService
2626
```
2727

28-
Make *MathService* the current directory and run [`dotnet new classlib -lang F#`](../tools/dotnet-new.md) to create the source project. To use test-driven development (TDD), you'll create a failing implementation of the math service:
28+
Make *MathService* the current directory and run [`dotnet new classlib -lang F#`](../tools/dotnet-new.md) to create the source project. You'll create a failing implementation of the math service:
2929

3030
```fsharp
3131
module MyMath =
@@ -83,7 +83,7 @@ Execute [`dotnet sln add .\MathService.Tests\MathService.Tests.fsproj`](../tools
8383

8484
## Creating the first test
8585

86-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Open *Tests.fs* and add the following code:
86+
You write one failing test, make it pass, then repeat the process. Open *Tests.fs* and add the following code:
8787

8888
```fsharp
8989
[<Fact>]

docs/core/testing/unit-testing-fsharp-with-mstest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Inside the solution directory, create a *MathService* directory. The directory a
2525
/MathService
2626
```
2727

28-
Make *MathService* the current directory and run [`dotnet new classlib -lang F#`](../tools/dotnet-new.md) to create the source project. To use test-driven development (TDD), you'll create a failing implementation of the math service:
28+
Make *MathService* the current directory and run [`dotnet new classlib -lang F#`](../tools/dotnet-new.md) to create the source project. You'll create a failing implementation of the math service:
2929

3030
```fsharp
3131
module MyMath =
@@ -83,7 +83,7 @@ Execute [`dotnet sln add .\MathService.Tests\MathService.Tests.fsproj`](../tools
8383

8484
## Creating the first test
8585

86-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Open *Tests.fs* and add the following code:
86+
You write one failing test, make it pass, then repeat the process. Open *Tests.fs* and add the following code:
8787

8888
```fsharp
8989
namespace MathService.Tests

docs/core/testing/unit-testing-fsharp-with-nunit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Make *MathService* the current directory and run the following command to create
3939
dotnet new classlib -lang F#
4040
```
4141

42-
To use test-driven development (TDD), you create a failing implementation of the math service:
42+
You create a failing implementation of the math service:
4343

4444
```fsharp
4545
module MyMath =
@@ -110,7 +110,7 @@ dotnet sln add .\MathService.Tests\MathService.Tests.fsproj
110110

111111
## Creating the first test
112112

113-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Open *UnitTest1.fs* and add the following code:
113+
You write one failing test, make it pass, then repeat the process. Open *UnitTest1.fs* and add the following code:
114114

115115
```fsharp
116116
namespace MathService.Tests

docs/core/testing/unit-testing-visual-basic-with-dotnet-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Inside the solution directory, create a *PrimeService* directory. You have the f
2525
/PrimeService
2626
```
2727

28-
Make *PrimeService* the current directory and run [`dotnet new classlib -lang VB`](../tools/dotnet-new.md) to create the source project. Rename *Class1.VB* to *PrimeService.VB*. To use test-driven development (TDD), you create a failing implementation of the `PrimeService` class:
28+
Make *PrimeService* the current directory and run [`dotnet new classlib -lang VB`](../tools/dotnet-new.md) to create the source project. Rename *Class1.VB* to *PrimeService.VB*. You create a failing implementation of the `PrimeService` class:
2929

3030
```vb
3131
Namespace Prime.Services
@@ -88,7 +88,7 @@ Execute [`dotnet sln add .\PrimeService.Tests\PrimeService.Tests.vbproj`](../too
8888

8989
## Creating the first test
9090

91-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Remove *UnitTest1.vb* from the *PrimeService.Tests* directory and create a new Visual Basic file named *PrimeService_IsPrimeShould.VB*. Add the following code:
91+
You write one failing test, make it pass, then repeat the process. Remove *UnitTest1.vb* from the *PrimeService.Tests* directory and create a new Visual Basic file named *PrimeService_IsPrimeShould.VB*. Add the following code:
9292

9393
```vb
9494
Imports Xunit

docs/core/testing/unit-testing-visual-basic-with-mstest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Inside the solution directory, create a *PrimeService* directory. You have the f
2525
/PrimeService
2626
```
2727

28-
Make *PrimeService* the current directory and run [`dotnet new classlib -lang VB`](../tools/dotnet-new.md) to create the source project. Rename *Class1.VB* to *PrimeService.VB*. To use test-driven development (TDD), you create a failing implementation of the `PrimeService` class:
28+
Make *PrimeService* the current directory and run [`dotnet new classlib -lang VB`](../tools/dotnet-new.md) to create the source project. Rename *Class1.VB* to *PrimeService.VB*. You create a failing implementation of the `PrimeService` class:
2929

3030
```vb
3131
Imports System
@@ -90,7 +90,7 @@ Execute [`dotnet sln add .\PrimeService.Tests\PrimeService.Tests.vbproj`](../too
9090

9191
## Creating the first test
9292

93-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Remove *UnitTest1.vb* from the *PrimeService.Tests* directory and create a new Visual Basic file named *PrimeService_IsPrimeShould.VB*. Add the following code:
93+
You write one failing test, make it pass, then repeat the process. Remove *UnitTest1.vb* from the *PrimeService.Tests* directory and create a new Visual Basic file named *PrimeService_IsPrimeShould.VB*. Add the following code:
9494

9595
```vb
9696
Imports Microsoft.VisualStudio.TestTools.UnitTesting

docs/core/testing/unit-testing-visual-basic-with-nunit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Make *PrimeService* the current directory and run the following command to creat
3838
dotnet new classlib -lang VB
3939
```
4040

41-
Rename *Class1.VB* to *PrimeService.VB*. To use test-driven development (TDD), you create a failing implementation of the `PrimeService` class:
41+
Rename *Class1.VB* to *PrimeService.VB*. You create a failing implementation of the `PrimeService` class:
4242

4343
```vb
4444
Imports System
@@ -110,7 +110,7 @@ dotnet sln add .\PrimeService.Tests\PrimeService.Tests.vbproj
110110

111111
## Creating the first test
112112

113-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. In the *PrimeService.Tests* directory, rename the *UnitTest1.vb* file to *PrimeService_IsPrimeShould.VB* and replace its entire contents with the following code:
113+
You write one failing test, make it pass, then repeat the process. In the *PrimeService.Tests* directory, rename the *UnitTest1.vb* file to *PrimeService_IsPrimeShould.VB* and replace its entire contents with the following code:
114114

115115
```vb
116116
Imports NUnit.Framework

docs/core/testing/unit-testing-with-dotnet-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Inside the solution directory, create a *PrimeService* directory. The directory
2323
/PrimeService
2424
```
2525

26-
Make *PrimeService* the current directory and run [`dotnet new classlib`](../tools/dotnet-new.md) to create the source project. Rename *Class1.cs* to *PrimeService.cs*. To use test-driven development (TDD), you first create a failing implementation of the `PrimeService` class:
26+
Make *PrimeService* the current directory and run [`dotnet new classlib`](../tools/dotnet-new.md) to create the source project. Rename *Class1.cs* to *PrimeService.cs*. You first create a failing implementation of the `PrimeService` class:
2727

2828
```csharp
2929
using System;
@@ -100,7 +100,7 @@ dotnet sln add .\PrimeService.Tests\PrimeService.Tests.csproj
100100

101101
## Creating the first test
102102

103-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Remove *UnitTest1.cs* from the *PrimeService.Tests* directory and create a new C# file named *PrimeService_IsPrimeShould.cs*. Add the following code:
103+
You write one failing test, make it pass, then repeat the process. Remove *UnitTest1.cs* from the *PrimeService.Tests* directory and create a new C# file named *PrimeService_IsPrimeShould.cs*. Add the following code:
104104

105105
```csharp
106106
using Xunit;

docs/core/testing/unit-testing-with-mstest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ a new solution file for the class library and the test project. Next, create a *
2121
/PrimeService
2222
```
2323

24-
Make *PrimeService* the current directory and run [`dotnet new classlib`](../tools/dotnet-new.md) to create the source project. Rename *Class1.cs* to *PrimeService.cs*. To use test-driven development (TDD), you create a failing implementation of the `PrimeService` class:
24+
Make *PrimeService* the current directory and run [`dotnet new classlib`](../tools/dotnet-new.md) to create the source project. Rename *Class1.cs* to *PrimeService.cs*. You create a failing implementation of the `PrimeService` class:
2525

2626
```csharp
2727
using System;
@@ -88,7 +88,7 @@ Execute [`dotnet sln add .\PrimeService.Tests\PrimeService.Tests.csproj`](../too
8888

8989
## Creating the first test
9090

91-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. Remove *UnitTest1.cs* from the *PrimeService.Tests* directory and create a new C# file named *PrimeService_IsPrimeShould.cs* with the following content:
91+
You write one failing test, make it pass, then repeat the process. Remove *UnitTest1.cs* from the *PrimeService.Tests* directory and create a new C# file named *PrimeService_IsPrimeShould.cs* with the following content:
9292

9393
```csharp
9494
using Microsoft.VisualStudio.TestTools.UnitTesting;

docs/core/testing/unit-testing-with-nunit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Make *PrimeService* the current directory and run the following command to creat
3636
dotnet new classlib
3737
```
3838

39-
Rename *Class1.cs* to *PrimeService.cs*. To use test-driven development (TDD), you create a failing implementation of the `PrimeService` class:
39+
Rename *Class1.cs* to *PrimeService.cs*. You create a failing implementation of the `PrimeService` class:
4040

4141
```csharp
4242
using System;
@@ -111,7 +111,7 @@ dotnet sln add ./PrimeService.Tests/PrimeService.Tests.csproj
111111

112112
## Creating the first test
113113

114-
The TDD approach calls for writing one failing test, making it pass, then repeating the process. In the *PrimeService.Tests* directory, rename the *UnitTest1.cs* file to *PrimeService_IsPrimeShould.cs* and replace its entire contents with the following code:
114+
You write one failing test, make it pass, then repeat the process. In the *PrimeService.Tests* directory, rename the *UnitTest1.cs* file to *PrimeService_IsPrimeShould.cs* and replace its entire contents with the following code:
115115

116116
```csharp
117117
using NUnit.Framework;

0 commit comments

Comments
 (0)