public void GetFunctionTemplateWithParams() { var r = GenericPresentationHelpers.GetFuncTemplate( new ChallengeSet <string[]>( Guid.NewGuid(), "a", "b", this.intAndString, new Challenge <string[]>[] { })); r.Should().BeEquivalentTo("string[] Main(int i, string s) { return ... ; }"); }
public void GetFunctionTemplateNoParams() { var r = GenericPresentationHelpers.GetFuncTemplate( new ChallengeSet <string[]>( Guid.NewGuid(), "a", "b", Array.Empty <ParamDescription>(), new Challenge <string[]>[] { })); r.Should().BeEquivalentTo("string[] Main() { return ... ; }"); }