Exemplo n.º 1
0
        public void ShouldGetNullIfElementIsNotRegistered()
        {
            var timelineBarRegistry = new TimelineBarRegistry();

            var result = timelineBarRegistry.GetTimelineBarElement("key");

            Assert.IsNull(result);
        }
Exemplo n.º 2
0
        public void ShouldRegisterTimelineBarElement()
        {
            var timelineBarElement  = new MockTimelineBarElement();
            var timelineBarRegistry = new TimelineBarRegistry();

            timelineBarRegistry.RegisterTimelineBarElement("key", () => timelineBarElement);

            Assert.AreEqual(timelineBarElement, timelineBarRegistry.GetTimelineBarElement("key"));
        }