Skip to content

Commit

Permalink
Update PackageManagerUITests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Jan 30, 2024
1 parent 0f92b69 commit 7aca1b6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,8 @@ public void AddsFilesAndFoldersFromFilePathsCorrectly()

// Assert that the PackageContents still contains the correct number of items
allFilesAndFoldres = PackageItemRootViewModel.GetFiles(packageContents.First());
Assert.AreEqual(allFilesAndFoldres.Count, allFiles.Count + allFolders.Count + 1);
//since we donot skip loading asemblies which are already loaded..
Assert.AreEqual(allFilesAndFoldres.Count, assemblies.Count + additionalFiles.Count+ allFolders.Count + 1);
Assert.AreEqual(allFilesAndFoldres.Count(i => i.DependencyType.Equals(DependencyType.Assembly)), assemblies.Count);
Assert.AreEqual(allFilesAndFoldres.Count(i => i.DependencyType.Equals(DependencyType.File)), additionalFiles.Count);
Assert.AreEqual(allFilesAndFoldres.Count(i => i.DependencyType.Equals(DependencyType.Folder)), allFolders.Count + 1);
Expand Down Expand Up @@ -2011,7 +2012,7 @@ public void AssertGetExistingRootItemViewModelReturnsCorrectItem()
var testFoldersCount = testRootItems.Count(x => x.DependencyType.Equals(DependencyType.Folder));
var testFilesCount = testRootItems.Count(x => !x.DependencyType.Equals(DependencyType.Folder));

Assert.AreEqual(foldersCount, testFoldersCount);
Assert.AreEqual(foldersCount, testFoldersCount - 1);
Assert.AreEqual(filesCount, testFilesCount);
}

Expand Down

0 comments on commit 7aca1b6

Please sign in to comment.