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); }
private static Tbool AllAreMale(Tset theSet) { return(theSet.ForAll(_ => Facts.QueryTvar <Tstr>("Gender", _) == "Male")); }
private static Tbool AllAreMale(Tset theSet) { return theSet.ForAll( _ => Facts.QueryTvar<Tstr>("Gender", _) == "Male"); }