public void TestComplement() { Assert.AreEqual(~15, Ops.Complement(15)); Assert.AreEqual(true, Ops.Complement(false)); Assert.AreEqual(false, Ops.Complement(true)); Assert.AreEqual(~new BigInteger(15), Ops.Complement(new BigInteger(15))); Assert.AreEqual(~15, Ops.Complement <MyInt, int>(new MyInt(15))); }
public static Var <E> operator ~(Var <E> value) => Ops.Complement(value.Value);