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

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

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