public void WhenTypeIsNull_ThenThrowException() { Assert.Throws <ArgumentNullException>(() => MemberInfoExtensions.HasAttribute <UsedMethodAttribute>(null)); }