Create unit tests for this c# string extension method: public static string clean(this…
- User
Create unit tests for this c# string extension method: public static string clean(this string s, string[] suffixesToClean) { var sb = new StringBuilder(s); foreach (var t in suffixesToClean) { foreach (var enumValues in suffixesToClean) { try { sb.Replace(enumValues, ""); } catch (Exception e) { Console.WriteLine(e); throw; } } }
codereturn sb.ToString(); } Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.