示例#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 (this.ThrowExceptions)
            {
                return(assertProvider.EnableExceptions());
            }

            return(assertProvider);
        }
        private IAssertProvider BuildAssertProvider(ICommandProvider commandProvider)
        {
            var assertProvider = new AssertProvider(commandProvider);

            if (this.ThrowExceptions)
                return assertProvider.EnableExceptions();

            return assertProvider;
        }
        public IAssertProvider EnableExceptions()
        {
            var provider = new AssertProvider(this.commandProvider);
            provider.ThrowExceptions = true;

            return provider;
        }