Esempio n. 1
0
        public void GivenANullReference_If_ShouldThrowAnException()
        {
            Action action = () => ObjectFluentExtensions.If <object>(null, true, o => o);

            action.Should().Throw <ArgumentNullException>();
        }
Esempio n. 2
0
        public void GivenANullReference_FluentAdapter_ShouldThrowAnException()
        {
            Action action = () => ObjectFluentExtensions.FluentAdapter <object>(null, () => { });

            action.Should().Throw <ArgumentNullException>();
        }