public void HavingFileWithMatchingName_WhenChecked_ThenMatches() { // pattern: file-or-dir-1 // path: /file-or-dir-1 (file) HFile hFile = new HFile { Name = "file-or-dir-1" }; bool actual = blackPath.Matches(hFile); Assert.That(actual, Is.True); }
public void HavingFileWithMatchingName_WhenChecked_ThenDoesNotMatch() { // pattern: item-1/ // path: /item-1 (file) HFile hFile = new HFile { Name = "item-1" }; bool actual = blackPath.Matches(hFile); Assert.That(actual, Is.False); }