public void Equals_WithSimilarSignal_ReturnsTrue() { var signal1 = new DefensiveCombinedSignal( new BuySignal( 4, 7 ) ); var signal2 = new DefensiveCombinedSignal( new BuySignal( 4, 7 ) ); Assert.IsTrue( signal1.Equals( signal2 ) ); }
public void Equals_WithDifferentSignal_ReturnsFalse() { var signal1 = new DefensiveCombinedSignal( new BuySignal( 4, 7 ) ); var signal2 = new DefensiveCombinedSignal( new BuySignal( 4, 8 ) ); Assert.IsFalse( signal1.Equals( signal2 ) ); }