refactor: use generic param in unit test

This didn't break the test because its only used for ICommand at the
moment, but updating it for future use.
recyclarr
Robert Dailey 3 years ago
parent 14bc0f9354
commit f25d2620b5

@ -24,7 +24,7 @@ namespace Trash.Tests
public IEnumerator GetEnumerator()
{
return _asm.DefinedTypes
.Where(t => t.GetInterfaces().Contains(typeof(ICommand)) && !t.IsAbstract)
.Where(t => t.GetInterfaces().Contains(typeof(T)) && !t.IsAbstract)
.GetEnumerator();
}
}

Loading…
Cancel
Save