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"))); }
public void ThenBarIs(int value) { var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>(); Assert.That(scenarioArgs.Bar, Is.EqualTo(value)); }
public void WhenISetQuxTo(int value) { var scenarioArgs = SpecArgsFactory.CreateScenarioArgs <FooScenarioArgs>(); scenarioArgs.Qux = value; }