public void Test_InterceptRec_Inequality_InExact() { InterceptRec intercept = new InterceptRec(0.999f, 1.999f, 3, 4, 4.999f, 6); InterceptRec intercept2 = new InterceptRec(1, 2, 3, 4, 5, 6); Assert.False(intercept.Equals(intercept2), "Intercept recs not equal when they should be (1)"); Assert.False(intercept.Equals(intercept2.OriginX, intercept2.OriginY, intercept2.ProfileItemIndex), "Intercept recs not equal when they should be (2)"); }
public void Test_InterceptRec_Equality_Exact2() { InterceptRec intercept = new InterceptRec(1, 2, 3, 4, 5, 6); InterceptRec intercept2 = new InterceptRec(1, 2, 3, 4, 5, 6); Assert.Equal(intercept, intercept2); Assert.True(intercept.Equals(intercept2), "Intercept recs not equal when they should be (1)"); Assert.True(intercept.Equals(intercept2.OriginX, intercept2.OriginY, intercept2.ProfileItemIndex), "Intercept recs not equal when they should be (2)"); }