The Artima Developer Community
Sponsored Link

.NET Buzz Forum
FileAssert updated

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Darrell Norton

Posts: 876
Nickname: dnorton
Registered: Mar, 2004

Darrell Norton is a consultant for CapTech Ventures.
FileAssert updated Posted: Jul 21, 2004 6:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Darrell Norton.
Original Post: FileAssert updated
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Darrell Norton
Latest Posts From Darrell Norton's Blog

Advertisement

Thanks to Roy’s suggestion, I added an overload to the FileAssert class that takes the filename as a string (well actually two, since there is always a method that takes the error message to be displayed as a string). This avoids you having to create FileInfo or FileStream objects if you already have the files on disk. I should have realized this since I had to setup FileInfo and FileStream objects for all my tests by reading files from disk already.

static public void AreEqual(string expected, string actual, string message)

Download the FileAssert class (it’s in the NUnitIO release) from the NUnitExtensions workspace.


This Blog Hosted On: http://www.DotNetJunkies.com/

Read: FileAssert updated

Topic: An interesting morning Previous Topic   Next Topic Topic: Language wars and Kilkenny cats

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use