예제 #1
0
 public void ToJson_GivenScenario_OverridesScenario()
 {
     ScenarioCatcher result = new ScenarioCatcher();
     result.ToJson(scenario: "foo");
     result.Scenario.ShouldBe("foo");
 }
예제 #2
0
 public void ToJson_DefaultsToSerializeJsonScenario()
 {
     ScenarioCatcher result = new ScenarioCatcher();
     result.ToJson();
     result.Scenario.ShouldBe(SerializationScenario.SerializeToJson);
 }