From 08506561792182694d297ce224bf959089536c28 Mon Sep 17 00:00:00 2001 From: Daniel Balas Date: Wed, 28 Aug 2024 17:11:16 +0200 Subject: [PATCH] #34405 Test of reported bug that is not reproducible. --- .../RegularExpressionAttributeTests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/Metalama.Patterns.Contracts.UnitTests/RegularExpressionAttributeTests.cs b/src/tests/Metalama.Patterns.Contracts.UnitTests/RegularExpressionAttributeTests.cs index deba2f02..b033a00f 100644 --- a/src/tests/Metalama.Patterns.Contracts.UnitTests/RegularExpressionAttributeTests.cs +++ b/src/tests/Metalama.Patterns.Contracts.UnitTests/RegularExpressionAttributeTests.cs @@ -63,6 +63,14 @@ public void Given_FieldEmail_When_IncorrectValuePassed_Then_ExceptionIsThrown() Assert.Contains( "Email2", e.Message, StringComparison.Ordinal ); } + [Fact] + public void Given_FieldEmail_When_ValidValueWithSingleQuote_Then_Success() + { + var cut = new RegexTestClass(); + + cut.Email2 = "Jaki.O'Dowd@marinemanagement.org.uk"; + } + [Fact] public void Given_FieldWithPhone_When_CorrectValuePassed_Then_Success() {