mirror of
https://github.com/chylex/.NET-Community-Toolkit.git
synced 2025-04-10 11:15:45 +02:00
Minor tweaks to unit tests
This commit is contained in:
parent
6c91cc70ed
commit
8c6e9295de
@ -34,7 +34,7 @@ public void Test_StringPool_Add_Empty()
|
||||
{
|
||||
StringPool.Default.Add(string.Empty);
|
||||
|
||||
bool found = StringPool.Default.TryGet(default, out string? text);
|
||||
bool found = StringPool.Default.TryGet(ReadOnlySpan<char>.Empty, out string? text);
|
||||
|
||||
Assert.IsTrue(found);
|
||||
Assert.AreSame(string.Empty, text);
|
||||
@ -89,7 +89,7 @@ public void Test_StringPool_Add_Misc()
|
||||
[TestMethod]
|
||||
public void Test_StringPool_GetOrAdd_Empty()
|
||||
{
|
||||
string empty = StringPool.Default.GetOrAdd(default);
|
||||
string empty = StringPool.Default.GetOrAdd(ReadOnlySpan<char>.Empty);
|
||||
|
||||
Assert.AreSame(string.Empty, empty);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user