public void GetChildReturnsValidIfNoChild() { var notification = new Notification(); var child = notification.GetChild("anything"); child.IsValid().ShouldBeTrue(); }
public void GetChild() { var notification = new Notification(); var child = new Notification(); notification.AddChild("something", child); Assert.AreSame(child, notification.GetChild("something")); }