public Test() { ClassComplex <int> ccg = new ClassComplex <int>(); ccg.MyGenericValue = 1; ccg.MyIntValue = 2; ccg.MyStringValue = "3"; ClassComplex cc = ccg; }
public void TestComplexValues() { var expected = new ClassComplex { time = DateTime.MinValue.AddDays(1234), i = 1125, l = 962377529306543236, s = "This\nis\ta{TEST} \"of\" parser's capabilities", d = 256.125 }; var actual = ConfigTestTools.LoadValidConfig <ClassComplex>( Config.SaveToString(Config.ConvertFromClass(expected)) ); Assert.AreEqual(expected, actual); }