Skip to content

Commit 0850656

Browse files
committed
#34405 Test of reported bug that is not reproducible.
1 parent 8780c51 commit 0850656

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/tests/Metalama.Patterns.Contracts.UnitTests/RegularExpressionAttributeTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ public void Given_FieldEmail_When_IncorrectValuePassed_Then_ExceptionIsThrown()
6363
Assert.Contains( "Email2", e.Message, StringComparison.Ordinal );
6464
}
6565

66+
[Fact]
67+
public void Given_FieldEmail_When_ValidValueWithSingleQuote_Then_Success()
68+
{
69+
var cut = new RegexTestClass();
70+
71+
cut.Email2 = "Jaki.O'Dowd@marinemanagement.org.uk";
72+
}
73+
6674
[Fact]
6775
public void Given_FieldWithPhone_When_CorrectValuePassed_Then_Success()
6876
{

0 commit comments

Comments
 (0)