RegexTranslationTests.cs 496 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Xunit;
  7. namespace XUnity.AutoTranslator.Plugin.Core.Tests
  8. {
  9. public class RegexTranslationTests
  10. {
  11. [Theory( DisplayName = "Can_Create_Regex" )]
  12. [InlineData( "r:\"^タイプ([0-90-9]+)$\"", "r:\"Type $1\"" )]
  13. public void Can_Create_Regex( string key, string value )
  14. {
  15. var regex = new RegexTranslation( key, value );
  16. }
  17. }
  18. }