Exemplo n.º 1
0
 public void ShiftMinusOneOneLeft()
 {
     Assert.AreEqual(-1, BitShifter.ShiftAndWrap(-1, 1));
 }
Exemplo n.º 2
0
 public void ShiftIntMinOneLeft()
 {
     Assert.AreEqual(1, BitShifter.ShiftAndWrap(Int32.MinValue, 1));
 }
Exemplo n.º 3
0
 public void ShiftOneOneLeft()
 {
     Assert.AreEqual(2, BitShifter.ShiftAndWrap(1, 1));
 }
Exemplo n.º 4
0
 public void ShiftOneThirtyTwoLeft()
 {
     Assert.AreEqual(1, BitShifter.ShiftAndWrap(1, 32));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.ConditionText?.GetHashCode() ?? 0, 3)
            ^ this.ConditionState.GetHashCode());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.SourceStep.GetHashCode(), 3)
            ^ this.TargetStep.GetHashCode());
 }
Exemplo n.º 7
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.StepDescription?.GetHashCode() ?? 0, 3)
            ^ this.Identifier.GetHashCode());
 }
Exemplo n.º 8
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.Identifier.GetHashCode(), 3)
            ^ this.Step.GetHashCode());
 }
Exemplo n.º 9
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.Id, 4)
            ^ this.Type.GetHashCode());
 }