상속: XmlBrick, IWaitBrick
예제 #1
0
 public bool Equals(XmlWaitBrick b)
 {
     return this.Equals((XmlBrick)b) && this.TimeToWaitInSeconds.Equals(b.TimeToWaitInSeconds);
 }
        public void XmlWaitBrickTest()
        {
            TextReader sr = new StringReader("<brick type=\"WaitBrick\"><formulaList><formula category=\"TIME_TO_WAIT_IN_SECONDS\"><type>NUMBER</type><value>1.0</value></formula></formulaList></brick>");
            var xRoot = XElement.Load(sr);

            var testObject = new XmlWaitBrick(xRoot);

            var referenceObject = new XmlWaitBrick()
            {
                TimeToWaitInSeconds = new XmlFormula(xRoot, XmlConstants.TimeToWaitInSeconds),
            };

            Assert.AreEqual(referenceObject, testObject);
        }