示例#1
0
        public void ObjectAsOf2()
        {
            Thing P1  = new Thing("P1");
            Tset  tsv = new Tset(Hstate.Stub);

            tsv.AddState(Date(2000, 01, 01), P1);
            tsv.AddState(Date(2001, 01, 01), Hstate.Uncertain);
            Assert.AreEqual(Hstate.Uncertain, tsv.ObjectAsOf(Date(2002, 02, 01)).Val);
        }
 public void ObjectAsOf2()
 {
     Thing P1 = new Thing("P1");
     Tset tsv = new Tset(Hstate.Stub);
     tsv.AddState(Date(2000,01,01),P1);
     tsv.AddState(Date(2001,01,01),Hstate.Uncertain);
     Assert.AreEqual(Hstate.Uncertain, tsv.ObjectAsOf(Date(2002,02,01)).Val);
 }