Dear All,
Please help me on below issue.
We have FileWriter Class below having constructor with mentioned parameter
(string path, string name, string extension):-
public class FileWriter
{
#region Global Declaration
protected string filePath;
protected string fileName;
protected StreamWriter writer;
protected FileInfo fileInfo;
protected FileStream fileStream;
protected const string newLineSyntax = "\r\n";
protected const int MaxCommentLength = 2000;
#endregion
public FileWriter(string path, string name, string extension)
{
filePath = path;
fileName = name;
fileInfo = new FileInfo(filePath + "\\" + fileName + "." +
extension);
fileStream = fileInfo.Create();
writer = new StreamWriter(fileStream);
writer.AutoFlush = true;
}
}
How to unit test ( public FileWriter(string path, string name, string
extension)
) using Rhino Mocks without creating physical file ?
Kind Regards ,
A K Das.
--
You received this message because you are subscribed to the Google Groups
"Rhino.Mocks" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rhinomocks.
For more options, visit https://groups.google.com/d/optout.