예제 #1
0
        public void ThenBarHasBeenSet(string condition)
        {
            var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>();

            var hasBeenSet = scenarioArgs.HasBeenSet <FooScenarioArgs, int?>(args => args.Bar);

            Assert.That(hasBeenSet, Is.EqualTo(condition.EqualsCaseInsensitive("has been")));
        }
예제 #2
0
        public void ThenBarIs(int value)
        {
            var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>();

            Assert.That(scenarioArgs.Bar, Is.EqualTo(value));
        }
예제 #3
0
        public void WhenISetQuxTo(int value)
        {
            var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>();

            scenarioArgs.Qux = value;
        }