public void IsSecurityOrCriticalTest() { var exGood = new SecurityException(); var exBad = new ArgumentNullException(); Assert.IsTrue(exGood.IsSecurityOrCritical()); Assert.IsFalse(exBad.IsSecurityOrCritical()); }