Inheritance: XmlBrick, IChangeYByBrick
Ejemplo n.º 1
0
        public override bool Equals(System.Object obj)
        {
            XmlChangeYByBrick b = obj as XmlChangeYByBrick;

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

            return(this.Equals(b) && this.YMovement.Equals(b.YMovement));
        }
Ejemplo n.º 2
0
        public void XmlChangeYByBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"ChangeYByNBrick\"> <formulaList> <formula category=\"Y_POSITION_CHANGE\"> <type>USER_VARIABLE</type> <value>x speed</value> </formula> </formulaList> </brick>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlChangeYByBrick(xRoot);

            var referenceObject = new XmlChangeYByBrick()
            {
                YMovement = new XmlFormula(xRoot, XmlConstants.YPositionChange),
            };

            Assert. AreEqual(referenceObject, testObject);
        }
 public bool Equals(XmlChangeYByBrick b)
 {
     return this.Equals((XmlBrick)b) && this.YMovement.Equals(b.YMovement);
 }
Ejemplo n.º 4
0
 public bool Equals(XmlChangeYByBrick b)
 {
     return(this.Equals((XmlBrick)b) && this.YMovement.Equals(b.YMovement));
 }