1
0
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:
Sergio Pedri 2020-07-08 01:52:54 +02:00
parent 6c91cc70ed
commit 8c6e9295de

View File

@ -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);
}