The issue here is with the line endings. I ran the same code but when I used CRLF line endings, I got the Hash eqaw4I9IoPldjffqieTL/h7z0ejA9zc/fyXt+05KMl4=
.
As Jon Skeet mentioned, this is likely because you have autocrlf=true on your Git Repo.
You can either disable this (you may need to re-commit a new version of the jQuery.-3.7.1.min.js file, I am not too sure).
An alternate solution is to force fileContents to use LF line endings. The below code will achieve that :
var fileContents = TestResources.GetFileContents("MyTests.Resources.jquery-3.7.1.min.js").Replace("\r\n", "\n").Replace("\r", "\n");
This will ensure that fileContents is normalized to use LF Line endings.
I hope this helps, I am new to posting on StackOverflow so just trying to get the hang of it at the moment!