public void ToFormattedJson_GivenScenario_OverridesScenario() { ScenarioCatcher result = new ScenarioCatcher(); result.ToFormattedJson(scenario: "foo"); result.Scenario.ShouldBe("foo"); }
public void CopyTo_GivenScenario_OverridesScenario() { ScenarioCatcher catcher = new ScenarioCatcher(); catcher.CopyTo<ScenarioCatcher>(scenario: "foo"); catcher.Scenario.ShouldBe("foo"); }
public void ToFormattedJson_DefaultsToSerializeJsonScenario() { ScenarioCatcher result = new ScenarioCatcher(); result.ToFormattedJson(); result.Scenario.ShouldBe(SerializationScenario.SerializeToJson); }
public void CopyTo_DefaultsToObjectCopyScenario() { ScenarioCatcher catcher = new ScenarioCatcher(); catcher.CopyTo<ScenarioCatcher>(); catcher.Scenario.ShouldBe(SerializationScenario.ObjectCopy); }