Example #1
0
        protected void specify(string message)
        {
            EnsureNSpecConfiguration();

            Example.AddExpectation(new PendingExpectation {
                Message = message
            });
        }
Example #2
0
        protected void specify(string message, Expression <Action> expectation)
        {
            EnsureNSpecConfiguration();

            Example.AddExpectation(new ActionExpectation(expectation)
            {
                Message = message
            });
        }
Example #3
0
        protected void specify(string message, Expression <Func <bool> > expectation)
        {
            EnsureNSpecConfiguration();

            Example.AddExpectation(new FuncExpectation(expectation)
            {
                Message = message
            });
        }
Example #4
0
        public void should_pass_when_all_expectations_pass()
        {
            example.AddExpectation(passingExpectation);

            specify(() => example.IsPass);
        }