public void ToJson_GivenScenario_OverridesScenario() { ScenarioCatcher result = new ScenarioCatcher(); result.ToJson(scenario: "foo"); result.Scenario.ShouldBe("foo"); }
public void ToJson_DefaultsToSerializeJsonScenario() { ScenarioCatcher result = new ScenarioCatcher(); result.ToJson(); result.Scenario.ShouldBe(SerializationScenario.SerializeToJson); }