Example #1
0
        public void ReturnScheme_GivenReturnIsNull_ThrowsArgumentNullException()
        {
            Action constructor = () =>
            {
                var @return = new ReturnScheme(A.Fake <Domain.Scheme.Scheme>(), null);
            };

            constructor.Should().Throw <ArgumentNullException>();
        }
Example #2
0
        public void ReturnScheme_GivenSchemeIsNull_ThrowsArgumentNullException()
        {
            Action constructor = () =>
            {
                var @return = new ReturnScheme(null, A.Fake <Return>());
            };

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