Exemple #1
0
        public void ThenBazHasBeenSet(string condition)
        {
            var featureArgs = SpecArgsFactory.CreateFeatureArgs <IFooFeatureArgs>();

            var hasBeenSet = featureArgs.HasBeenSet <IFooFeatureArgs, int?>(args => args.Baz);

            Assert.That(hasBeenSet, Is.EqualTo(condition.EqualsCaseInsensitive("has been")));
        }
Exemple #2
0
        public void GivenBazIs(int value)
        {
            var featureArgs = SpecArgsFactory.CreateFeatureArgs <IFooFeatureArgs>();

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

            featureArgs.Baz = value;
        }
Exemple #3
0
        public void ThenBazIs(int value)
        {
            var featureArgs = SpecArgsFactory.CreateFeatureArgs <IFooFeatureArgs>();

            Assert.That(featureArgs.Baz, Is.EqualTo(value));
        }