I used following code to test the private method after seeing another solution but this is not working. Compile Error.
FooClass target = new FooClass(DBContext, null, null, null, null)
PrivateObject privObj = new PrivateObject(target);
var actual = privObj.Invoke("privateFoo", fooParam);
private method receives one parameter of object. Parameter Object is used earlier and used for testing in other methods too. So I'm confident about it. And private method does not use any null objects I'm passing either. No dependencies. Want to know if there's another way to unit test private methods or I'm missing something.