Inheritance: XmlBrick, IMoveNStepsBrick
        public override bool Equals(System.Object obj)
        {
            XmlMoveNStepsBrick b = obj as XmlMoveNStepsBrick;

            if ((object)b == null)
            {
                return(false);
            }

            return(this.Equals(b) && this.Steps.Equals(b.Steps));
        }
        public void XmlMoveNStepsBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"MoveNStepsBrick\"> <formulaList> <formula category=\"STEPS\"> <type>NUMBER</type> <value>20</value> </formula> </formulaList> </brick>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlMoveNStepsBrick(xRoot);

            var referenceObject = new XmlMoveNStepsBrick()
            {
                Steps = new XmlFormula(xRoot, XmlConstants.Steps),
            };

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