Skip to content

Commit 293b396

Browse files
Fix the dash typo in lang flag of classlib in Unit testing Visual Basic page (#46481)
* Fix the dash typo in lang flag of classlib * Include lang option in xunit project creation to make sure VB is used
1 parent 278b13f commit 293b396

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following instructions provide the steps to create the test solution. See [C
3838
* Run the following command:
3939

4040
```dotnetcli
41-
dotnet new classlib -o PrimeService --lang VB
41+
dotnet new classlib -o PrimeService -lang VB
4242
```
4343

4444
The [`dotnet new classlib`](../tools/dotnet-new.md) command creates a new class library project in the *PrimeService* folder. The new class library will contain the code to be tested.
@@ -72,7 +72,7 @@ The following instructions provide the steps to create the test solution. See [C
7272
* Create the *PrimeService.Tests* project by running the following command:
7373

7474
```dotnetcli
75-
dotnet new xunit -o PrimeService.Tests
75+
dotnet new xunit -o PrimeService.Tests -lang VB
7676
```
7777

7878
* The preceding command:
@@ -108,7 +108,7 @@ cd unit-testing-using-dotnet-test
108108
dotnet new classlib -o PrimeService
109109
ren .\PrimeService\Class1.vb PrimeService.vb
110110
dotnet sln add ./PrimeService/PrimeService.vbproj
111-
dotnet new xunit -o PrimeService.Tests
111+
dotnet new xunit -o PrimeService.Tests -lang VB
112112
dotnet add ./PrimeService.Tests/PrimeService.Tests.vbproj reference ./PrimeService/PrimeService.vbproj
113113
dotnet sln add ./PrimeService.Tests/PrimeService.Tests.vbproj
114114
```

0 commit comments

Comments
 (0)