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); }
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); }
public void TypeCacheInitTargetDirNullTest() { var typeCache = new TypeCache(); typeCache.Init(null, new string[] { testDataFile }); }
public void TypeCacheInitNullFilesTest() { var typeCache = new TypeCache(); typeCache.Init("dir", null); }
public void TypeCacheInitNoFilesTest() { var typeCache = new TypeCache(); typeCache.Init("dir", new string[] { }); typeCache.Init("dir", null); }