public void XSolonDictionaryTest() { var dic = new XSolonDictionary(); dic.Add("Test", "Balu"); string raw = dic.Serialize(); Trace.WriteLine(raw); XSolonDictionary dic2 = raw.DeserializeString<XSolonDictionary>(); Assert.AreEqual(dic2, dic); }
public void XSolonDictionaryTest() { var dic = new XSolonDictionary(); dic.Add("Test", "Balu"); string raw = dic.Serialize(); Trace.WriteLine(raw); XSolonDictionary dic2 = raw.DeserializeString <XSolonDictionary>(); Assert.AreEqual(dic2, dic); }
public void LoggerClassSerializationTest() { var dic = new XSolonDictionary(); var logger = new List <LoggerClass>() { new LoggerClass("Default", new TraceDestination()), new LoggerClass("Handler", new TraceDestination()) }; dic.Add("Test", logger); var raw = dic.Serialize(new Type[] { typeof(List <LoggerClass>), typeof(LoggerClass), typeof(TraceDestination) }); Trace.TraceInformation(raw); }