Brightspace / render-docs-action

A GitHub Action to render docs for https://docs.d2l.dev
Apache License 2.0
1 stars 0 forks source link

Add tests #20

Open jbheard opened 4 years ago

jbheard commented 4 years ago

It would be nice to have tests for things. This will be especially important if we start adding more complex patterns like analyzers.

jbheard commented 4 years ago

Something nice to go with this would be to move all complexity out of Program.cs to make things more testable.

Then the main should look something like:

public static async Task<int> Main( string input, string output ) {
    var worker = new MarkdownFileWorker( input, output );
    await worker.DoWorkAsync();
}