public void TestMethod1() { BooleanProperty <int> bp = new BooleanProperty <int>(); Assert.AreEqual(false, bp.Get(1)); bp.Set(1, true); Assert.AreEqual(true, bp.Get(1)); bp.Set(1, false); Assert.AreEqual(false, bp.Get(1)); bp.Set(1, true); Assert.AreEqual(true, bp.Get(1)); bp.Set(1, false); Assert.AreEqual(false, bp.Get(1)); bp.Set(1, true); Assert.AreEqual(true, bp.Get(1)); bp.Set(1, false); Assert.AreEqual(false, bp.Get(1)); }
public static bool IsArranging(this SpotOrder so) { return(arranging.Get(so)); }
public static bool IsArranging(this Order o) { return(arranging.Get(o)); }
public static bool IsSelling(this Trader t, PositionSummary p) { var k = MakeKey(t, p); return(sellDic.Get(k)); }
public static bool IsClearing(this Trader t) { return(cp.Get(t)); }