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); }
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); }