Move AssertIs and AssertNotIs to separate classes.