Exemplo n.º 1
0
        /// <summary>
        /// Adds a then step
        /// </summary>
        /// <param name="thenStep">The then step</param>
        /// <param name="description">Description of the assertion</param>
        public IThenDefinition Then(
            ThenHandler thenStep,
            string description)
        {
            thenStep.NotNull(nameof(thenStep));

            _thenSteps.Add(new ThenStep(thenStep, description));

            return this;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds another then step
        /// </summary>
        /// <param name="thenStep">The then step</param>
        /// <param name="description">Description of the assertion</param>
        public IThenDefinition And(
            ThenHandler thenStep,
            string description)
        {
            Then(thenStep, description);

            return this;
        }
Exemplo n.º 3
0
            public ThenStep(
                ThenHandler predicate,
                string description)
            {
                predicate.NotNull(nameof(predicate));
                description.NotNullOrEmpty(nameof(description));

                _predicate = predicate;
                Description = description;
            }