示例#1
0
        public void GetChildReturnsValidIfNoChild()
        {
            var notification = new Notification();
            var child = notification.GetChild("anything");

            child.IsValid().ShouldBeTrue();
        }
示例#2
0
        public void GetChild()
        {
            var notification = new Notification();
            var child = new Notification();
            notification.AddChild("something", child);

            Assert.AreSame(child, notification.GetChild("something"));
        }