mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52: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
|
private class AnotherMockService : IMockService
|
||||||
{
|
{
|
||||||
public AnotherMockService(string _){}
|
public AnotherMockService(string ignore)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -40,7 +40,7 @@ public sealed class FakeTypeResolver : ITypeResolver
|
|||||||
|
|
||||||
if (_instances.TryGetValue(type, out var listInstances))
|
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))
|
if (_registrations.TryGetValue(type, out var listRegistrations))
|
||||||
@ -48,7 +48,7 @@ public sealed class FakeTypeResolver : ITypeResolver
|
|||||||
listRegistrations
|
listRegistrations
|
||||||
.Select<Type, object>(x => Activator.CreateInstance(x)!)
|
.Select<Type, object>(x => Activator.CreateInstance(x)!)
|
||||||
.ToList()
|
.ToList()
|
||||||
.ForEach(i => castList.Add(i));
|
.ForEach(i => castList!.Add(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
return allRegistrations;
|
return allRegistrations;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user