Look inside one extra folder

This commit is contained in:
Forgind 2023-07-31 09:35:27 -07:00
parent ed92f2c9c3
commit f947a6cc4c

View file

@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.DotNet.Tools.Test.Utilities;
using Microsoft.NET.Sdk.WorkloadManifestReader;
@ -26,7 +23,9 @@ namespace EndToEnd.Tests
{
var sdkManifestDir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk-manifests");
var sdkversionDir = new DirectoryInfo(sdkManifestDir).EnumerateDirectories().First();
foreach (var manifestDir in sdkversionDir.EnumerateDirectories())
foreach (var manifestVersionDir in sdkversionDir.EnumerateDirectories())
{
foreach (var manifestDir in manifestVersionDir.EnumerateDirectories())
{
var manifestId = manifestDir.Name;
@ -37,6 +36,7 @@ namespace EndToEnd.Tests
Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream, manifestFile);
readManifest.ShouldNotThrow("manifestId:" + manifestId + " manifestFile:" + manifestFile + "is invalid");
}
}
}
}