I want to write a Unit test for verifying version of dll used in all csproj files of a solution is correct or not. Ex. i have a dll reference in 1 csproj file like this
<Reference Include="Moq, Version=4.2.1408.511, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\packages\Moq.4.2.1408.0511\lib\net40\Moq.dll</HintPath>
</Reference>
so here i want to read Moq version as 4.2.1408.511 and compare with "4.2.1408.511" string. How can i write unit Test to do this