Beispiel #1
0
        public void ExtractAllDecimalTestNullCheck1()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.ExtractAllDecimal(null, 10);

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

            test.ShouldThrow <ArgumentNullException>();
        }