You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CommandServiceConfigTests.Data.cs 1.1 kB

12345678910111213141516171819202122232425262728
  1. using Discord.Commands;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. namespace Discord.Net.Commands.Tests
  5. {
  6. partial class CommandServiceConfigTests
  7. {
  8. public static IEnumerable<object[]> SeparatorNodeTestData => _separatorNodeTestData;
  9. private static readonly IEnumerable<object[]> _separatorNodeTestData = new List<CommandServiceConfig>
  10. {
  11. new CommandServiceConfig{ SeparatorChar = ' '},
  12. new CommandServiceConfig{ SeparatorChar = '_'},
  13. new CommandServiceConfig{ SeparatorChar = '.'},
  14. new CommandServiceConfig{ SeparatorChar = '\u200b'},
  15. new CommandServiceConfig{ SeparatorChar = '"'}
  16. }.Select(x => new object[] { x, x.SeparatorChar });
  17. public static IEnumerable<object[]> CaseSensitivityTestData => _caseSensitivityTestData;
  18. private static readonly IEnumerable<object[]> _caseSensitivityTestData = new object[][]
  19. {
  20. new object[]{ true, false },
  21. new object[]{ true, true },
  22. new object[]{ false, true },
  23. new object[]{ false, false }
  24. };
  25. }
  26. }