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

21 lines
511 B

  1. using OT.COM.LogisticsUtil;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using Xunit;
  8. namespace TestUnit.OT.COM.LogisticsUtil
  9. {
  10. public class Test_ValidatorHelper
  11. {
  12. [Theory]
  13. [InlineData("abc@gmail.com", true)]
  14. [InlineData("a", false)]
  15. public void IsValidEmail(string i_sTest, bool i_bResult)
  16. {
  17. Assert.True(ValidatorHelper.IsValidEmail(i_sTest) == i_bResult);
  18. }
  19. }
  20. }