Tag: Unit Test

Unit test a public method which relies on a protected method

Sometimes you need to write unit tests for a public method which is relying on some other protected methods. For example, lets say we have a business logic class which has a public GetGreatestId method, which returns the…

Read More »