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

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

            return(this.Equals(b) && this.Transparency.Equals(b.Transparency));
        }
 public bool Equals(XmlSetGhostEffectBrick b)
 {
     return(this.Equals((XmlBrick)b) && this.Transparency.Equals(b.Transparency));
 }
        public void XmlSetGhostEffectBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"SetGhostEffectBrick\">  <formulaList>  <formula category=\"TRANSPARENCY\">  <type>NUMBER</type>  <value>0</value>  </formula>  </formulaList>  </brick>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlSetGhostEffectBrick(xRoot);

            var referenceObject = new XmlSetGhostEffectBrick()
            {
                Transparency = new XmlFormula(xRoot, XmlConstants.Transparency),
            };

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