예제 #1
0
        public void Ini_object_turns_into_ini_string()
        {
            IniTestType iniObject = iniTestTypeObject;

            string result = iniObject.ToIniString();

            Assert.Equal(iniTestTypeObjectAsString, result);
        }
예제 #2
0
        public void Ini_string_turns_into_ini_object()
        {
            string iniString = iniTestTypeObjectAsString;

            IniTestType result = iniString.ToIniObject <IniTestType>();

            Assert.Equal(iniTestTypeObject.Data.Global.Count, result.Data.Global.Count);
            Assert.Equal(iniTestTypeObject.Data.Sections.Count, result.Data.Sections.Count);
        }