public void ConvertsSecondsProperly() { var obj = new EstimatedTimeBR("5 segundos"); Assert.AreEqual(5, obj.ToSeconds()); Assert.AreEqual(0, obj.ToMinutes()); Assert.AreEqual(0, obj.ToHours()); }
public void ConvertsHoursProperly() { var obj = new EstimatedTimeBR("5 horas"); Assert.AreEqual(18000, obj.ToSeconds()); Assert.AreEqual(300, obj.ToMinutes()); Assert.AreEqual(5, obj.ToHours()); }
public void ConvertsMinuteProperly() { var obj = new EstimatedTimeBR("1 minuto"); Assert.AreEqual(60, obj.ToSeconds()); Assert.AreEqual(1, obj.ToMinutes()); Assert.AreEqual(0, obj.ToHours()); }
public void ConvertsHourProperly() { var obj = new EstimatedTimeBR("1 hora"); Assert.AreEqual(3600, obj.ToSeconds()); Assert.AreEqual(60, obj.ToMinutes()); Assert.AreEqual(1, obj.ToHours()); }