public void ShiftMinusOneOneLeft() { Assert.AreEqual(-1, BitShifter.ShiftAndWrap(-1, 1)); }
public void ShiftIntMinOneLeft() { Assert.AreEqual(1, BitShifter.ShiftAndWrap(Int32.MinValue, 1)); }
public void ShiftOneOneLeft() { Assert.AreEqual(2, BitShifter.ShiftAndWrap(1, 1)); }
public void ShiftOneThirtyTwoLeft() { Assert.AreEqual(1, BitShifter.ShiftAndWrap(1, 32)); }
/// <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()); }
/// <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()); }
/// <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()); }
/// <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()); }
/// <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()); }