Пример #1
0
        public IAssertProvider EnableExceptions()
        {
            var provider = new AssertProvider(this.commandProvider);

            provider.ThrowExceptions = true;

            return(provider);
        }
Пример #2
0
        private IAssertProvider BuildAssertProvider(ICommandProvider commandProvider)
        {
            var assertProvider = new AssertProvider(commandProvider);

            if (ThrowExceptions)
            {
                return(assertProvider.EnableExceptions());
            }

            return(assertProvider);
        }