Remove Microsoft.VisualStudio.TestTools.UnitTesting from ChapterTests.props
MODIFY
src/ChapterTests.props
src/ChapterTests.props
<PackageReference Update="coverlet.msbuild" Version="3.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.MSTest" Version="1.1.1" />
- <Using Include="Microsoft.VisualStudio.TestTools.UnitTesting"/>
+ <!--<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting"/>-->
</ItemGroup>
<!-- TODO: Ideally this would be placed in a ChapterTests.targets file. -->

MODIFY
src/Shared/CompilerAssert.cs
src/Shared/CompilerAssert.cs
@@ -5,6 +5,7 @@ using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Scripting;
using System.Globalization;
using System.Diagnostics;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AddisonWesley.Michaelis.EssentialCSharp.Shared;

Remove Microsoft.VisualStudio.TestTools.UnitTesting from ChapterTests.props