public void FT_AlwaysPerInterval_1() { // This will break annually b/c Year is determined by the system clock Tnum theYear = Time.Year(5); Tbool t = new Tbool(); t.AddState(Time.DawnOf, false); t.AddState(Date(2012, 11, 8), true); Tbool result = t.AlwaysPer(theYear).Lean; Assert.AreEqual("{Dawn: false; 1/1/2013: true}", result.Out); }
public void FT_AlwaysPerInterval_1() { // This will break annually b/c Year is determined by the system clock Tnum theYear = Time.Year(5); Tbool t = new Tbool(); t.AddState(Time.DawnOf, false); t.AddState(Date(2012,11,8), true); Tbool result = t.AlwaysPer(theYear).Lean; Assert.AreEqual("{Dawn: false; 1/1/2013: true}", result.Out); }