public void IsParentOf(string parentDirPath, string childFilePath, Should should) { Assume.That(Path.GetFileName(childFilePath), Is.Not.Empty); var parentDir = new DirectoryInfo(parentDirPath); var childFile = new FileInfo(childFilePath); Assert.That(parentDir.IsParentOf(childFile), should.Constrain()); }