using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Seshat; using Seshat.DataDefinitions; using System.CodeDom; namespace Seshat.UnitTests { public class TableCodeGeneratorTests : UnitTestSharp.TestFixture { public void Basic() { const string ExampleSchema = @" schema = { Person = { name = string, age = int, weight = float, } }"; var schema = Seshat.LuaDefinitions.LuaExecutor.RunScriptExtractSchema(ExampleSchema); var definition = schema.Types["Person"]; definition.members.Add(null); CheckThrow(typeof(Exception)); TableCodeGenerator.GenerateTableType(definition, schema); } } }