Exemplo n.º 1
0
        public void FTest3NullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.F(null, new Object(), new Object(), new Object(), new Object());

            test.ShouldThrow <ArgumentNullException>();
        }
Exemplo n.º 2
0
        public void FTest4NullCheck()
        {
            // ReSharper disable once AssignNullToNotNullAttribute
            // ReSharper disable once ReturnValueOfPureMethodIsNotUsed
            Action test = () => StringEx.F(null, CultureInfo.InvariantCulture, new Object(), new Object(), new Object(), new Object());

            Assert.Throws <ArgumentNullException>(test);
        }