public void GetBeforeTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.GetBefore(null, "");

            test.ShouldThrow <ArgumentNullException>();
        }
Beispiel #2
0
        public void GetBeforeTest1NullCheck()
        // ReSharper disable once AssignNullToNotNullAttribute
        // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
        {
            Action test = () => StringEx.GetBefore(null, "", 1, 1);

            Assert.Throws <ArgumentNullException>(test);
        }