Unable to export test to C# code

When I select a test, click on ‘Generated code’, select C# and click Download an error occurs stating ‘Unable to generate code’