public void XmlSpeakBrickTest() { TextReader sr = new StringReader("<brick type=\"SpeakBrick\"> <formulaList> <formula category=\"SPEAK\"> <type>STRING</type> <value>Hello!</value> </formula> </formulaList> </brick>"); var xRoot = XElement.Load(sr); var testObject = new XmlSpeakBrick(xRoot); var referenceObject = new XmlSpeakBrick() { FText = new XmlFormula(xRoot, XmlConstants.Speak), }; Assert.AreEqual(referenceObject, testObject); }
public bool Equals(XmlSpeakBrick b) { return this.Equals((XmlBrick)b) && this.FText.Equals(b.FText); }