示例#1
0
        public void TestLoadFrom()
        {
            var tempT4Dll = new T4TempDll(@"D:\Workspace\GitHub\EasyAccess\", "EasyAccess.Model");
            var assembly  = Assembly.LoadFrom(tempT4Dll.TempDllFullName);

            if (assembly != null)
            {
                var entities = assembly.GetTypes().Where(x => typeof(IEntity).IsAssignableFrom(x) && !x.IsAbstract).ToList();
                Assert.IsTrue(entities.Count > 0);
            }
        }
示例#2
0
        public void TestT4TempDll()
        {
            var tempT4Dll = new T4TempDll(@"D:\Workspace\GitHub\EasyAccess\", "EasyAccess.Model");

            Assert.IsTrue(new Regex("EasyAccess.Model" + "\\.\\d{8}\\.dll$").IsMatch(tempT4Dll.TempDllFullName));
        }