[Fact]
public void On_the_hour()
{
var sut = new Clock(8, 0);
Assert.Equal("08:00", sut.ToString());
}
I want to create class Clock with contructor which has parameters hours and minutes.
After calling it in another class(code above) how to return values? So, when i call Clock.ToString() i want to receive "hours:minutes"
public class Clock
{
public int Hours;
public int Minutes;
public Clock(int hours, int minutes)
{
Hours = hours;
Minutes = minutes;
}
}