public void WedgeAngle_Equals_Object() { WedgeAngle wa = new WedgeAngle(0, WedgeAngleType.Angle); WedgeAngle wa2 = new WedgeAngle(0, WedgeAngleType.Angle); Assert.False(wa.Equals((object)null)); Assert.True(wa.Equals((object)wa2)); }
public void WedgeAngle_Equals() { WedgeAngle wa = new WedgeAngle(0, WedgeAngleType.Angle); WedgeAngle wa2 = new WedgeAngle(0, WedgeAngleType.Angle); WedgeAngle wa3 = new WedgeAngle(90, WedgeAngleType.Angle); WedgeAngle wa4 = new WedgeAngle(0, WedgeAngleType.Star); Assert.True(wa.Equals(wa2)); Assert.False(wa.Equals(wa3)); Assert.False(wa.Equals(wa4)); }