mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00
fixed the build-errors
All of which I introduced earlier.
This commit is contained in:
parent
dc402220f2
commit
023c77ff09
@ -246,7 +246,9 @@ public sealed class TypeRegistrarBaseTests
|
||||
|
||||
private class AnotherMockService : IMockService
|
||||
{
|
||||
public AnotherMockService(string _){}
|
||||
public AnotherMockService(string ignore)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -40,7 +40,7 @@ public sealed class FakeTypeResolver : ITypeResolver
|
||||
|
||||
if (_instances.TryGetValue(type, out var listInstances))
|
||||
{
|
||||
listInstances.ForEach(i => castList.Add(i));
|
||||
listInstances.ForEach(i => castList!.Add(i));
|
||||
}
|
||||
|
||||
if (_registrations.TryGetValue(type, out var listRegistrations))
|
||||
@ -48,7 +48,7 @@ public sealed class FakeTypeResolver : ITypeResolver
|
||||
listRegistrations
|
||||
.Select<Type, object>(x => Activator.CreateInstance(x)!)
|
||||
.ToList()
|
||||
.ForEach(i => castList.Add(i));
|
||||
.ForEach(i => castList!.Add(i));
|
||||
}
|
||||
|
||||
return allRegistrations;
|
||||
|
Loading…
x
Reference in New Issue
Block a user