ClassRecordGeneratorTests.cs 517 B

1234567891011121314151617181920
  1. using CodeGenerators;
  2. namespace CodeGeneratorsTests;
  3. public class ClassRecordGeneratorTests
  4. {
  5. [Fact]
  6. public void BuildTest()
  7. {
  8. var test = new ClassRecordGenerator("TestNamespace", "Test");
  9. test.Usings.Add("ExcelORM");
  10. var property = new Property("TestProperty", "string");
  11. property.Attributes.Add(new AttributeElement("Column", "Test Property"));
  12. test.Properties.Add(property);
  13. var result = test.Build();
  14. Assert.NotEmpty(result);
  15. }
  16. }