Пример #1
0
        public void GivenBazIs(int value)
        {
            var featureArgs = SpecArgsFactory.CreateFeatureArgs <IFooFeatureArgs>();

            if (featureArgs.Baz != null)
            {
                return;
            }

            featureArgs.Baz = value;
        }
Пример #2
0
        public void ThenBazIs(int value)
        {
            var featureArgs = SpecArgsFactory.CreateFeatureArgs <IFooFeatureArgs>();

            Assert.That(featureArgs.Baz, Is.EqualTo(value));
        }
Пример #3
0
        public void ThenBarIs(int value)
        {
            var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>();

            Assert.That(scenarioArgs.Bar, Is.EqualTo(value));
        }
Пример #4
0
        public void WhenISetQuxTo(int value)
        {
            var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>();

            scenarioArgs.Qux = value;
        }