Skip to content

Commit

Permalink
make argument exception message matching less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jul 30, 2024
1 parent 63b2841 commit 04bd789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SIL.LCModel.Tests/DomainImpl/CmPictureTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void CmPictureConstructor_FromTextRep_MissingCmPictureToken()
public void CmPictureConstructor_FromTextRep_MissingFilename()
{
Assert.That(() => m_pictureFactory.Create("CmPicture||||||This is a caption||",
CmFolderTags.LocalPictures), Throws.ArgumentException.With.Property("Message").Matches("File path not specified.(\\r)?\\nParameter( )?name: srcFile"));
CmFolderTags.LocalPictures), Throws.ArgumentException.With.Message.Contains("File path not specified"));
}

/// -------------------------------------------------------------------------------------
Expand Down

0 comments on commit 04bd789

Please sign in to comment.