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

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

            return(this.Equals(b) && this.ChangeGhostEffect.Equals(b.ChangeGhostEffect));
        }
         public void XmlChangeGhostEffectBrickTest()
         {
             TextReader sr = new StringReader("<brick type=\"ChangeGhostEffectByNBrick\"><formulaList><formula category=\"TRANSPARENCY_CHANGE\"><type>NUMBER</type><value>2.5</value></formula></formulaList></brick>");
             var xRoot = XElement.Load(sr);

             var testObject = new XmlChangeGhostEffectBrick(xRoot);

             var referenceObject = new XmlChangeGhostEffectBrick()
             {
                 ChangeGhostEffect = new XmlFormula(xRoot, XmlConstants.ChangeGhostEffect),
             };

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