I am recently having one getter function which just returns the current Time using certain time format. Since it is returning the current time using some system API, I can’t think of a way to write an unit test for this.
Can anyone give suggestion on that?
At least you can check if result is not null and if you call it twice, second result is greater than first.