상속: XmlBrick, ITurnLeftBrick
        public void XmlTurnLeftBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"TurnLeftBrick\"> <formulaList> <formula category=\"TURN_LEFT_DEGREES\"> <leftChild> <type>NUMBER</type> <value>0.1</value> </leftChild> <rightChild> <type>NUMBER</type> <value>0.9</value> </rightChild> <type>FUNCTION</type> <value>RAND</value> </formula> </formulaList> </brick>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlTurnLeftBrick(xRoot);

            var referenceObject = new XmlTurnLeftBrick()
            {
                Degrees = new XmlFormula(xRoot, XmlConstants.TurnLeftDegrees),
            };

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