public void WhenIsNull_ThenThrowException()
 {
     Assert.Throws <ArgumentNullException>(() => XElementExtensions.HasAttribute(null, "type"));
 }