Hi.
My test projects have data files as part of the solution. To avoid dependencies on the file system on the CI server, I embed them in the test assembly as manifest resources. The problem is when I intercept File.Open calls using JustMock. What do I do? What do I return? Do I pass it a Mock<FileInfo>? Since "File.Open()" is mentioned about as often as "DateTime.Now" to show the strengths of TypeMock and JustMock, what are good practices/strategies to employ when dealing with it?
http://stackoverflow.com/questions/3466355/how-can-i-pass-a-solution-resource-as-a-filestream-object-to-an-intercepted-file
My test projects have data files as part of the solution. To avoid dependencies on the file system on the CI server, I embed them in the test assembly as manifest resources. The problem is when I intercept File.Open calls using JustMock. What do I do? What do I return? Do I pass it a Mock<FileInfo>? Since "File.Open()" is mentioned about as often as "DateTime.Now" to show the strengths of TypeMock and JustMock, what are good practices/strategies to employ when dealing with it?
http://stackoverflow.com/questions/3466355/how-can-i-pass-a-solution-resource-as-a-filestream-object-to-an-intercepted-file