ModernUO/Projects/SerializationGenerator.Tests/Tests/GenerateClassTests.cs
Kamron Batman b6779a7c09
fix(codegen): Creates multiple steps for serialization source generator (#628)
Roslyn Source generators are not supposed to access I/O. To get around this we have to use `AdditionalFiles` to give the analyzer access to read/load the schema files.
To write the schema files we have to use a separate program altogether.

- [X] Adds SerializationSchemaGenerator
- [X] Splits out the SerializationGenerator code
2021-05-31 11:54:59 -07:00

23 lines
504 B
C#

using System.Collections.Immutable;
using System.Text;
using Microsoft.CodeAnalysis;
using SourceGeneration;
using Xunit;
namespace SerializationGeneratorTests
{
public class GenerateClassTests
{
[Fact]
public void Test1()
{
var source = new StringBuilder();
source.GenerateClassStart(
"TestClass",
ImmutableArray<ITypeSymbol>.Empty
);
Assert.NotEmpty(source.ToString());
}
}
}