Example #1
0
        public void DeSerializeMachineOptionTest()
        {
            var machineOptionList =
                MachineOptionList.FromXml <MachineOptionList>(
                    this.GetMachineOptionText());

            Assert.AreEqual(5, machineOptionList.Count);
            Assert.AreEqual("OmrThreshold", machineOptionList[0].Name);
            Assert.AreEqual("20", machineOptionList[0].Value);
        }
Example #2
0
        public void SerializeMachineOptionTest()
        {
            var machineParamList =
                MachineOptionList.FromXml <MachineOptionList>(
                    this.GetMachineOptionText());
            var xmlRootOverride = new XmlRootAttribute("MachineOptions");

            string machineParamXml =
                MachineOptionList.Serialize(machineParamList, xmlRootOverride);

            Assert.AreEqual(
                this.GetMachineOptionText(), machineParamXml, machineParamXml);
        }