Ejemplo n.º 1
0
        public void AssertFindsClassWithTableAttribute()
        {
            var types = new ScriptTypeSearcher(_assemblies).GetTypesWithTableAttribute();

            var expected = types.Where(x => x.Name == typeof (TableClass).Name).First();
            Assert.IsNotNull(expected);
        }
 public void AssertWritesActionScriptToDisk()
 {
     var assembly = typeof(Athlete).Assembly;
     var typeSearcher = new ScriptTypeSearcher(new[] { assembly });
     foreach (var type in typeSearcher.GetTypesWithTableAttribute())
     {
         WriteTypeToDisk(type);
     }
 }