예제 #1
0
        public void TypeCacheIgnoresTypesContainingImportTest()
        {
            var typeCache = new TypeCache();
            typeCache.Init("test5", new[] { @"TestData\TrianglesWithImport.etl" });

            Assert.AreEqual(4, typeCache.Types.Length);
            Assert.AreEqual(3, typeCache.Manifests.Length);
        }
예제 #2
0
        public void TypeCacheInitHappyPathTest()
        {
            var typeCache = new TypeCache();
            typeCache.Init("test", new[] { testDataFile });

            var dir = typeCache.CacheDirectory;

            Assert.AreEqual(3, Directory.GetFiles(dir, "*.bond").Length);
            Assert.AreEqual(3, typeCache.Manifests.Length);

            Directory.Delete(dir, true);
        }
예제 #3
0
 public void TypeCacheInitTargetDirNullTest()
 {
     var typeCache = new TypeCache();
     typeCache.Init(null, new string[] { testDataFile });
 }
예제 #4
0
 public void TypeCacheInitNullFilesTest()
 {
     var typeCache = new TypeCache();
     typeCache.Init("dir", null);
 }
예제 #5
0
 public void TypeCacheInitNoFilesTest()
 {
     var typeCache = new TypeCache();
     typeCache.Init("dir", new string[] { });
     typeCache.Init("dir", null);
 }