GroupByNothingRenderer.cs 425 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace UnityTest
  4. {
  5. public class GroupByNothingRenderer : AssertionListRenderer<string>
  6. {
  7. protected override IEnumerable<IGrouping<string, AssertionComponent>> GroupResult (IEnumerable<AssertionComponent> assertionComponents)
  8. {
  9. return assertionComponents.GroupBy (c => "");
  10. }
  11. protected override string GetStringKey (string key)
  12. {
  13. return "";
  14. }
  15. }
  16. }