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