public void ReturnsNullWhenFileNotPresent()
        {
            string filename = Guid.NewGuid().ToString();
            ProfileCatalogModuleInfoStore store = new ProfileCatalogModuleInfoStore();

            store.CatalogFilePath = filename;

            string results = store.GetModuleListXml();

            Assert.IsNull(results);
        }
        public void ReadsContentsOfFileFromDiskAsString()
        {
            string filename = Path.GetTempFileName();
            string contents = "1 2 3\n4 5\n 6";

            File.WriteAllText(filename, contents);
            ProfileCatalogModuleInfoStore store = new ProfileCatalogModuleInfoStore();

            store.CatalogFilePath = filename;

            string results = store.GetModuleListXml();

            Assert.AreEqual(contents, results);
        }