conider class abc here condition we already write test case for Some_Another_Method() and than we need to write unit test case for some_method(); how to write xunit test case for nested methods ?
class abc
{
public void some_method()
{
//doing something which also need unit test
//some database calls
Some_Another_Method();
///doing something which also need unit test
//some database calls
}
public void Some_Another_Method()
{
//doing something which also need unit test
//some database calls
}
}
Try to write xunit test case for nested methods