示例#1
0
        public void VerifyTheFunctionality()
        {
            NothingToDoManager nothingToDoManager = GetManager();
            string             originalString     = "aaaa";
            string             stringToSave       = nothingToDoManager.ParseToSave(originalString);

            Assert.AreEqual(originalString, nothingToDoManager.ParseFromLoad(stringToSave));
        }
        public ISaveDataFormatManager GetSaveDataFormatManager(string dataFormatVersion)
        {
            ISaveDataFormatManager saveDataFormatManager = null;

            switch (dataFormatVersion)
            {
            case SaveDataFormatVersions.NothingToDoDataFormatManagerVersion:
                saveDataFormatManager = NothingToDoManager.GetNothingToDoManager();
                break;

            case SaveDataFormatVersions.StringEscapedFormatManagerVersion:
                saveDataFormatManager = StringEscapedManager.GetStringEscapedManager();
                break;
            }
            return(saveDataFormatManager);
        }
示例#3
0
 public static void SetupDataTypes()
 {
     TypesKeyConstants.ReturnKeys().ForEach((string key) => DataTypesFactory.GetDataTypesFactory().GetDataType(key).SetDataFormatManager(NothingToDoManager.GetNothingToDoManager()));
 }
示例#4
0
 public static NothingToDoManager GetManager()
 {
     return(NothingToDoManager.GetNothingToDoManager());
 }