public void TestReferenceAssemblyPaths(string[] referenceAssemblyPaths) { var task = new MockTask() { ReferenceAssemblyPaths = referenceAssemblyPaths.Select(p => new TaskItem(p)).ToArray() }; using (var driver = task.CreateDriver()) { var expectedReferences = referenceAssemblyPaths; var actualReferences = driver.GetReferenceAssemblies(); Assert.Equal(expectedReferences.OrderBy(a => a), actualReferences.OrderBy(a => a)); foreach (var reference in expectedReferences) { var referenceName = Path.GetFileNameWithoutExtension(reference); var actualAction = driver.Context.Actions[referenceName]; Assert.Equal(AssemblyAction.Skip, actualAction); } } }