Наследование: XmlBrick, IBroadcastBrick
        public void XmlBroadcastBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"BroadcastBrick\"><broadcastMessage>Initialize!</broadcastMessage></brick>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlBroadcastBrick(xRoot);

            var referenceObject = new XmlBroadcastBrick()
            {
                BroadcastMessage = "Initialize!"
            };

            Assert.AreEqual(referenceObject, testObject);
        }
 public bool Equals(XmlBroadcastBrick b)
 {
     return this.Equals((XmlBrick)b) && this.BroadcastMessage.Equals(b.BroadcastMessage);
 }