Skip to content

Commit 282fd01

Browse files
authored
Merge pull request #3817 from noctwolf/patch-2
Update unit-tests-for-generic-methods.md
2 parents 393661b + 2897ad1 commit 282fd01

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/test/unit-tests-for-generic-methods.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,11 @@ In this example, the generic type parameter `T` has the constraint `where T : Em
156156

157157
In other words, when you call the `DataTestHelper<T>()` method from the test method, `DataTest()`, you must pass a parameter of type `Employee` or a class derived from `Employee`.
158158

159-
`using ClassLibrary2;`
160-
161-
`using Microsoft.VisualStudio.TestTools.UnitTesting;`
162-
163-
`namespace TestProject1`
164-
165159
```csharp
160+
using ClassLibrary2;
161+
using Microsoft.VisualStudio.TestTools.UnitTesting;
162+
163+
namespace TestProject1
166164
{
167165
[TestClass()]
168166
public class GenericList_NodeTest

0 commit comments

Comments
 (0)