0

I am trying to write a unit test for testing a private static method. That is why i need to use PrivateType class, which is in Microsoft.VisualStudio.TestTools.UnitTesting namespace.

Somewhere i found, that it is part of "Microsoft.VisualStudio.QualityTools.UnitTestFramework", but adding:

<ItemGroup>
        <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
</ItemGroup>

did not help at all. Any ideas how to solve this?

P.S. I am using VSCode as IDE and XUnit as testing framework.

Ivajlo Iliev
  • 303
  • 1
  • 3
  • 19
  • 1
    Try this: https://stackoverflow.com/questions/13602508/where-to-find-microsoft-visualstudio-testtools-unittesting-missing-dll – sr28 Oct 04 '22 at 11:26

0 Answers0