public void ShouldGiveACollectionWithItsEventTags() { var eventTags = new EventTag[] { new EventTag("event-one"), new EventTag("event-two") }; var name = "some-name"; var b = new Broadcaster( name: name, channel: null, eventTags: eventTags ); var collection = b.GetEventTags(); Assert.IsNotEmpty(collection); Assert.Contains(eventTags [0], collection); Assert.Contains(eventTags [1], collection); }
public void ShouldGiveACollectionWithoutNulls() { var eventTags = new EventTag[] { null, new EventTag("event-one"), null, new EventTag("event-two"), null }; var name = "some-name"; var b = new Broadcaster( name: name, channel: null, eventTags: eventTags ); var collection = b.GetEventTags(); Assert.IsTrue(collection.Length == 2); CollectionAssert.AllItemsAreNotNull(collection); }