public void GetFileExtensionTestNullCheck() { // ReSharper disable once AssignNullToNotNullAttribute // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => StringEx.GetFileExtension(null); Assert.Throws <ArgumentNullException>(test); }