Hello,
I want to Unit-test a method like the following:
public ActionResult StoreFile(FormCollection form, string _paginaAtual)
{
Session["MySession"] = 1
if (Request.Files["uploadedFiles"] != null)
{
//do something about the file
}
return View()
}
It's inside my "SomeController.cs" controller class and it is called when the user submits a file in a simple input type="file" HTML input.
P.S.: Purists beware: I KNOW this is not a "pure" unit testing, I just want to call the method in a test environment and check if it makes de desirable changes in the system.
Thank you all for any light in the subject, Lynx.