public void ShouldGetAllDependencies(string fileName, Dependency[] expected) { // All the test projects are named ".csproj1" because for some reason the compiler want to load them when they are called just ".csproj" and errors out var dependencies = ProjectParser.GetAllDependencies($"./sample-projects/{fileName}.csproj1"); Assert.Equal(expected, dependencies.ToArray()); }
public void ShouldGetAllDependencies(string fileName, Dependency[] expected) { var dependencies = ProjectParser.GetAllDependencies($"./sample-projects/{fileName}.json"); Assert.Equal(expected, dependencies.ToArray()); }