コード例 #1
0
ファイル: BitShifterTests.cs プロジェクト: WowItsDoge/AI-SWP
 public void ShiftMinusOneOneLeft()
 {
     Assert.AreEqual(-1, BitShifter.ShiftAndWrap(-1, 1));
 }
コード例 #2
0
ファイル: BitShifterTests.cs プロジェクト: WowItsDoge/AI-SWP
 public void ShiftIntMinOneLeft()
 {
     Assert.AreEqual(1, BitShifter.ShiftAndWrap(Int32.MinValue, 1));
 }
コード例 #3
0
ファイル: BitShifterTests.cs プロジェクト: WowItsDoge/AI-SWP
 public void ShiftOneOneLeft()
 {
     Assert.AreEqual(2, BitShifter.ShiftAndWrap(1, 1));
 }
コード例 #4
0
ファイル: BitShifterTests.cs プロジェクト: WowItsDoge/AI-SWP
 public void ShiftOneThirtyTwoLeft()
 {
     Assert.AreEqual(1, BitShifter.ShiftAndWrap(1, 32));
 }
コード例 #5
0
ファイル: Condition.cs プロジェクト: WowItsDoge/AI-SWP
 /// <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());
 }
コード例 #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());
 }
コード例 #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());
 }
コード例 #8
0
ファイル: ReferenceStep.cs プロジェクト: WowItsDoge/AI-SWP
 /// <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());
 }
コード例 #9
0
ファイル: FlowIdentifier.cs プロジェクト: WowItsDoge/AI-SWP
 /// <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());
 }