public void NegationTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); Assert.IsTrue((!a).Val); Assert.IsFalse((!b).Val); }
public void MplBooleanTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); Assert.IsTrue(b.Val); Assert.IsFalse(a.Val); }
public void InequalityTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); MplBoolean c = new MplBoolean(true, 0, 0); Assert.IsTrue((a != c).Val); Assert.IsFalse((c != b).Val); }
public void EqualsTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); MplBoolean c = new MplBoolean(true, 0, 0); Assert.IsTrue(b.Equals(c)); Assert.IsFalse(a.Equals(b)); }
public void ConjunctionTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); MplBoolean c = new MplBoolean(true, 0, 0); Assert.IsFalse((a & b).Val); Assert.IsTrue((b & c).Val); Assert.IsTrue((c & b).Val); }
public void GreaterTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); MplBoolean c = new MplBoolean(true, 0, 0); Assert.IsFalse((b > c).Val); Assert.IsFalse((a > b).Val); Assert.IsTrue((b > a).Val); }
public void LessTest() { MplBoolean a = new MplBoolean(false, 0, 0); MplBoolean b = new MplBoolean(true, 0, 0); MplBoolean c = new MplBoolean(true, 0, 0); Assert.IsFalse((b < c).Val); Assert.IsTrue((a < b).Val); Assert.IsFalse((b < a).Val); }
protected bool Equals(MplBoolean other) { return(Val == other.Val); }
public void GetTypeTest() { MplBoolean a = new MplBoolean(false, 0, 0); Assert.AreEqual(Type.Bool, a.GetType()); }