how to choose what paths to test in unit testing code example
Example 1: unittest run specific test
python -m unittest mypkg.tests.test_module.TestClass.test_method
# In your case, this would be:
python -m unittest testMyCase.MyCase.testItIsHot
Example 2: what is a unit testable code
public class SomeClass
{
public SomeClass(calculatedParams)
{
...
}
}
public interface ISomeClassCreator
{
SomeClass Create(params);
}
public class SomeClassCreator: ISomeClassCreator
{
public SomeClass Create(params)
{
...
}
}