コード例 #1
0
ファイル: GivenWhenThen.cs プロジェクト: c4rm4x/C4rm4x.Tools
        /// <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;
        }
コード例 #2
0
ファイル: GivenWhenThen.cs プロジェクト: c4rm4x/C4rm4x.Tools
        /// <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;
        }
コード例 #3
0
ファイル: GivenWhenThen.cs プロジェクト: c4rm4x/C4rm4x.Tools
            public ThenStep(
                ThenHandler predicate,
                string description)
            {
                predicate.NotNull(nameof(predicate));
                description.NotNullOrEmpty(nameof(description));

                _predicate = predicate;
                Description = description;
            }