I have the following code:
var li = renderedComponent.Find("li.validation-message");
Assert.Null(li);
The Find() call is throwing an exception instead of returning null. And HasComponent<>() needs a type. It's not clear what type to put in that.