public void GeneratesExpectedFileName() { var generator = new ProtoToDotNetGenerator("TestProto1.proto", "TestProtoToCharp", CodeGenLanguage.CSharp); var actualFileName = generator.GetFileName(); Assert.Equal("TestProtoToCharp.cs", actualFileName); }
public void GeneratesExpectedContent() { string protoFilePath = CreateProtoFile(); var generator = new ProtoToDotNetGenerator(protoFilePath, "TestProtoToCharp", CodeGenLanguage.CSharp); var actualContent = generator.GenerateFileContent(); Assert.NotNull(actualContent); }