public void Set_Sum_Unknown_2() { NewTest(); Tset theAssets = TheThings().Filter(_ => Owns(M, _)); Tnum sumOfAssets = theAssets.Sum(x => NullFcn(x)); Assert.AreEqual("Stub", sumOfAssets.Out); }
public void Set_Sum2() { NewTest(); Tset theAssets = TheThings().Filter(_ => Owns(M, _)); Tnum sumOfAssets = theAssets.Sum(x => AssetValue((Thing)x)); Assert.AreEqual("{Dawn: 3; 1/1/2005: 6; 1/1/2008: 4; 1/14/2011: 5}", sumOfAssets.Out); }
public void Set_Sum_Unknown_1() { NewTest(); Tset theAssets = new Tset(Hstate.Unstated); Tnum sumOfAssets = theAssets.Sum(x => AssetValue((Thing)x)); Assert.AreEqual("Unstated", sumOfAssets.Out); }