コード例 #1
0
        public void ForAll1()
        {
            NewTest();
            Tset  theAssets         = TheThings().Filter(_ => Owns(M, _));
            Tbool allAssetsAreCheap = theAssets.ForAll(x => AssetValueLessThan4((Thing)x));

            Assert.AreEqual("{Dawn: true; 1/14/2011: false}", allAssetsAreCheap.Out);
        }
コード例 #2
0
 private static Tbool AllAreMale(Tset theSet)
 {
     return(theSet.ForAll(_ => Facts.QueryTvar <Tstr>("Gender", _) == "Male"));
 }
コード例 #3
0
 private static Tbool AllAreMale(Tset theSet)
 {
     return theSet.ForAll( _ => Facts.QueryTvar<Tstr>("Gender", _) == "Male");
 }