public void SetsParametersUsingUpdateWith() { var editDurationEvent = new EditDurationEvent(false, EditDurationEvent.NavigationOrigin.Start); var changedEndTimeWithBarrel = editDurationEvent.ToDictionary()["changedEndTimeWithBarrel"]; editDurationEvent = editDurationEvent.UpdateWith(EditTimeSource.BarrelStopTime); var dict = editDurationEvent.ToDictionary(); changedEndTimeWithBarrel.Should().Be(false.ToString()); dict["changedEndTimeWithBarrel"].Should().Be(true.ToString()); }
public void ResultingDictionaryHasAllParameters() { var editDurationEvent = new EditDurationEvent(false, EditDurationEvent.NavigationOrigin.Start); var dict = editDurationEvent.ToDictionary(); dict.Count.Should().Be(12); }