String | Add & Any Methods, to a StringCollection
//Ref. Liu pathways/Test Automation project, ColorSwatchImageTest.cs
//Any() determines if the sequence contains any elements
//Add() adds a string to the end of a StringColleciton
//Creation of a String List object -- 'errors' --
var errors = new List<string>();
//Adding to the list. This was originally housed in if statement block
errors.Add(String.Format("{0} ext color image missing: {1}", seriesName, exteriorUrl));
return;
//If any errors occur, write to the console for each.
if (!errors.Any()) return;
errors.ForEach(Console.WriteLine);