public override bool Equals(System.Object obj) { XmlChangeSizeByNBrick b = obj as XmlChangeSizeByNBrick; if ((object)b == null) { return(false); } return(this.Equals(b) && this.Size.Equals(b.Size)); }
public void XmlChangeSizeByNBrickTest() { TextReader sr = new StringReader("<brick type=\"ChangeSizeByNBrick\"> <formulaList> <formula category=\"SIZE_CHANGE\"> <type>NUMBER</type> <value>1.5</value> </formula> </formulaList> </brick>"); var xRoot = XElement.Load(sr); var testObject = new XmlChangeSizeByNBrick(xRoot); var referenceObject = new XmlChangeSizeByNBrick() { Size = new XmlFormula(xRoot, XmlConstants.SizeChange), }; Assert.AreEqual(referenceObject, testObject); }
public bool Equals(XmlChangeSizeByNBrick b) { return(this.Equals((XmlBrick)b) && this.Size.Equals(b.Size)); }
public bool Equals(XmlChangeSizeByNBrick b) { return this.Equals((XmlBrick)b) && this.Size.Equals(b.Size); }