-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a class to generate strings that are null, empty, or whitespace…
…. Updated tests calling CanGetInstance to use this sample data.
- Loading branch information
1 parent
f902319
commit b23c485
Showing
3 changed files
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace LightInject.Tests; | ||
|
||
public static class StringDataGenerator | ||
{ | ||
public static IEnumerable<object[]> NullOrWhiteSpaceData() | ||
{ | ||
yield return new object[] { null }; | ||
yield return new object[] { string.Empty }; | ||
yield return new object[] { " " }; | ||
yield return new object[] { "\t" }; | ||
yield return new object[] { "\n" }; | ||
yield return new object[] { "\r" }; | ||
} | ||
} |