Exemple #1
0
        public void TemplateManagerTest_AddTemplateBundle_ShouldAddTemplateToListShouldCreateCacheEntry()
        {
            _templateManager.AddTemplateBundle(new TemplateBundle("TestBundle", _testLocation, _guid));
            Assert.IsTrue(File.Exists(Path.Combine(TemplateManager.RootCacheDirectory, _guid.ToString(), "Legacy(2010).w2t")));

            // 2 because the default template also gets created.
            Assert.AreEqual(2, _templateManager.TemplateBundles.Count());
        }