Exemplo n.º 1
0
        protected void specify(string message)
        {
            EnsureNSpecConfiguration();

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

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

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

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