public void ShouldGetNullIfElementIsNotRegistered() { var timelineBarRegistry = new TimelineBarRegistry(); var result = timelineBarRegistry.GetTimelineBarElement("key"); Assert.IsNull(result); }
public void ShouldRegisterTimelineBarElement() { var timelineBarElement = new MockTimelineBarElement(); var timelineBarRegistry = new TimelineBarRegistry(); timelineBarRegistry.RegisterTimelineBarElement("key", () => timelineBarElement); Assert.AreEqual(timelineBarElement, timelineBarRegistry.GetTimelineBarElement("key")); }