public void IsIncorrectListingFromPath_FindsIncorrectListing(string fileName, bool expectedResult) { WriteFile(fileName); string directoryName = Path.GetDirectoryName(fileName); if (!string.IsNullOrWhiteSpace(directoryName)) { CreatedDirectories.Add(directoryName); } string path = Path.Combine(Environment.CurrentDirectory, fileName); bool actualResult = ListingManager.IsExtraListing(path); Assert.AreEqual(expectedResult, actualResult); }