Esempio n. 1
0
 public void TextRotatorConfigTest()
 {
     var config = new TextRotatorConfig {Name = "objectname"};
     config.TextItems.Add(new TextRotatorConfigItem(){Delay=1000,Text="Hello world!\r\n"});
     SerializationHelpers.Serialize<TextRotatorConfig>(config, new FileInfo("TextRotatorConfigTest.xml"));
     var target = SerializationHelpers.Deserialize<TextRotatorConfig>(new FileInfo("TextRotatorConfigTest.xml"));
     Assert.AreEqual(config.Name, target.Name);
 }
Esempio n. 2
0
        public void TextRotatorConfigTest()
        {
            var config = new TextRotatorConfig {
                Name = "objectname"
            };

            config.TextItems.Add(new TextRotatorConfigItem()
            {
                Delay = 1000, Text = "Hello world!\r\n"
            });
            SerializationHelpers.Serialize <TextRotatorConfig>(config, new FileInfo("TextRotatorConfigTest.xml"));
            var target = SerializationHelpers.Deserialize <TextRotatorConfig>(new FileInfo("TextRotatorConfigTest.xml"));

            Assert.AreEqual(config.Name, target.Name);
        }