I'm creating a methodology to write Unit Tests in my company. We are focused on testing one thing each time but in the case of checking that a base constructor receives the right parameters I'm not finding anything else rather than testing the base constructor as well.
Is there a better approach? We are using MSTest together with JustMock and Rhino so extended features are available but anyway I've not find a way. Find an example below:
public Car : Vehicle
{
public Car() : base(4) {};
}
public Vehicle
{
public Vehicle(int wheelNumber) {};
}
I would like to put an expectation on the base constructor parameter as I would do with a normal method.
Thanks