I'm trying out https://github.com/VerifyTests/Verify for unit testing. It outputs snapshots in UTF-8 but does not include the UTF-8 byte order mark at the beginning of the received file. This makes my diff tool think the file is using the system encoding which is incorrect, and causes some minor issues.
Is there any way of forcing the BOM in Verify?
I've tried both 13.0.3 and 11.27.0 of Verify with the same results. My test project uses .NET Framework 4.7.2.
I tried writing directly to files using new UTF8Encoding(true, true)
and that outputs the BOM at the beginning of the files just fine. (I check the files with a hex editor)
This is just a minor nuisance though. I have to manually check the encoding in KDiff3 every time there's a difference.
this has been fixed. can you update to the newest version