public void Test_GetTypes()
        {
            var context = GetMockGitDB ();

            var typeManager = new DataTypeManager (context.Settings, context.Gitter);

            var exampleType = typeof(ExampleArticle);

            var typesString = exampleType.Name + typeManager.TypeNamesParser.PairSeparator + exampleType.FullName + ", " + exampleType.Assembly.GetName().Name;

            var filePath = context.Settings.Location.GetPath (typeManager.TypesFileName);

            File.WriteAllText(filePath, typesString);
            var types = typeManager.GetTypes();

            Assert.AreEqual (1, types.Count);

            Assert.IsTrue (types.ContainsKey (exampleType.Name));

            var fullTypeName = types [exampleType.Name];

            Assert.AreEqual (exampleType.FullName + ", " + exampleType.Assembly.GetName().Name, fullTypeName);
        }
        public void Test_GetTypes()
        {
            var context = GetTestContext ();

            var typeManager = new DataTypeManager (context.Keys, context.DataClient);

            var exampleType = typeof(ExampleArticle);

            var typesString = exampleType.Name + typeManager.PairSeparator + exampleType.AssemblyQualifiedName;

            var key = context.Settings.Prefix + "-Types";

            context.DataClient.Data [key] = typesString;

            var types = typeManager.GetTypes();

            Assert.AreEqual (1, types.Count);

            Assert.IsTrue (types.ContainsKey (exampleType.Name));

            var fullTypeName = types [exampleType.Name];

            Assert.AreEqual (exampleType.AssemblyQualifiedName, fullTypeName);
        }