Directory Assert
"Daaron Dwyer" <[email protected]> Thu, 27 Mar 2008 14:53:42 -0500
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have the start of some directory assertion code, and Charlie suggested I post the method signatures for discussion. I started from the DirectoryInfo object and worked outward from there. // equality is based on comparing the name, attributes, create date, and access date AreEqual(DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args) // string path that gets converted to a DirectoryInfo object AreEqual(string expected, string actual, string message, params object[] args) // these mirror the equality AreNotEqual(DirectoryInfo expected, DirectoryInfo actual, string message, params object[] args) AreNotEqual(string expected, string actual, string message, params object[] args) // checks if the directory has files (or not) and string versions of the same IsEmpty(DirectoryInfo directory, string message, params object[] args) IsNotEmpty(DirectoryInfo directory, string message, params object[] args) IsEmpty(string directory, string message, params object[] args) IsNotEmpty(string directory, string message, params object[] args) // asserts that actual is a subdirectory of directory (and not) and string versions IsWithin(DirectoryInfo directory, DirectoryInfo actual, string message, params object[] args) IsNotWithin(DirectoryInfo directory, DirectoryInfo actual, string message, params object[] args) IsWithin(string directory, string actual, string message, params object[] args) IsNotWithin(string directory, string actual, string message, params object[] args) Am I missing specific functionality anyone was thinking about, or any comments? Cheers, Daaron ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ nunit-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-developer