示例#1
0
        public void GetBetweenTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.GetBetween(null, "", "");

            Assert.Throws <ArgumentNullException>(test);
        }
示例#2
0
        public void GetBetweenCharTestNullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.GetBetween(null, 't', 't');

            test.ShouldThrow <ArgumentNullException>();
        }