I am creating a unit test that will test company information into the system but so I can test various assertions in my test.
Here is the code I wrote:
public static Random randnum = new Random();
private string _company = DateTime.Now.ToString("dd/MM/yy ") + ("company") + randnum.Next().ToString();
Basically I am just trying to get a random number to generate with each assertion where the company is listed. So am I writing this wrong or did I forget a piece?
I am using MBUnit.
Please help!