Skip to content

Commit

Permalink
fixed the build-errors
Browse files Browse the repository at this point in the history
All of which I introduced earlier.
  • Loading branch information
nils-a authored and patriksvensson committed Nov 10, 2023
1 parent dc40222 commit 023c77f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Spectre.Console.Testing/Cli/TypeRegistrarBaseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ private class MockService : IMockService

private class AnotherMockService : IMockService
{
public AnotherMockService(string _){}
public AnotherMockService(string ignore)
{
}
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Spectre.Console.Testing/FakeTypeResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public FakeTypeResolver(

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))
{
listRegistrations
.Select<Type, object>(x => Activator.CreateInstance(x)!)
.ToList()
.ForEach(i => castList.Add(i));
.ForEach(i => castList!.Add(i));
}

return allRegistrations;
Expand Down

0 comments on commit 023c77f

Please sign in to comment.