public void GetLocalPackageDirectoryForFullVersion() { // Create a fake package FakePackage fakePackage = new FakePackage() { Id = "NuGet.TestPackage", Version = new SemanticVersion("1.0.0.0") }; _sdAddInManagement.ConfigDirectory = @"C:\ConfigDir"; SetupNuGetPackageManager(); string expectedPackageDir = @"C:\ConfigDir\NuGet\NuGet.TestPackage.1.0.0.0"; Assert.That(_nuGetPackageManager.GetLocalPackageDirectory(fakePackage), Is.EqualTo(expectedPackageDir)); }