File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,32 @@ public void comma_should_terminate_address()
85
85
Assert . AreEqual ( expectedLast , result . Last ( ) , $ "Last email address must be { expectedLast } ") ;
86
86
}
87
87
88
+ [ TestMethod ]
89
+ public void alias_on_emoji_domain_is_found ( )
90
+ {
91
+ // Arrange
92
+ const string input = "example@i❤️.ws is" ;
93
+
94
+ // Act
95
+ var result = this . ExtractAddresses ( input ) ;
96
+
97
+ // Assert
98
+ Assert . IsTrue ( result . Any ( ) , "A result should be returned" ) ;
99
+ }
100
+
101
+ [ TestMethod ]
102
+ public void email_Address_on_idn_domain_name_is_recognised ( )
103
+ {
104
+ // Arrange
105
+ const string input = "بريد@موقع.شبكة" ;
106
+
107
+ // Act
108
+ var result = this . ExtractAddresses ( input ) ;
109
+
110
+ // Assert
111
+ Assert . IsTrue ( result . Any ( ) , "A result should be returned" ) ;
112
+ }
113
+
88
114
#region Wrappers
89
115
90
116
/// <summary>
You can’t perform that action at this time.
0 commit comments