public void OperatorInequality()
        {
            EquatableClass eNull = null;
            EquatableClass e1    = new EquatableClass(1);
            EquatableClass e1b   = new EquatableClass(1);
            EquatableClass e2    = new EquatableClass(2);

            Assert.IsFalse(ObjectImpl.OperatorInequality(eNull, null));
            Assert.IsFalse(ObjectImpl.OperatorInequality(e1, e1));
            Assert.IsFalse(ObjectImpl.OperatorInequality(e1, e1b));
            Assert.IsTrue(ObjectImpl.OperatorInequality(e1, eNull));
            Assert.IsTrue(ObjectImpl.OperatorInequality(eNull, e1));
            Assert.IsTrue(ObjectImpl.OperatorInequality(e1, e2));
        }
Example #2
0
 public static bool operator !=(ActionMatrixEntryKey left, ActionMatrixEntryKey right)
 {
     return(ObjectImpl.OperatorInequality(left, right));
 }
Example #3
0
 public static bool operator !=(StringValueTag left, ValueTagBase right)
 {
     return(ObjectImpl.OperatorInequality(left, right));
 }
Example #4
0
 /// <summary>
 /// Determines whether two specified <see cref="EquatableClass"/> objects have different value.
 /// </summary>
 /// <param name="left">An <see cref="EquatableClass"/> or a <c>null</c> reference.</param>
 /// <param name="right">An <see cref="EquatableClass"/> or a <c>null</c> reference.</param>
 /// <returns><c>true</c> if the value of <paramref name="left"/> is different from the value of <paramref name="right"/>; otherwise, <c>false</c>.</returns>
 public static bool operator !=(EquatableClass left, EquatableClass right)
 {
     return(ObjectImpl.OperatorInequality(left, right));
 }