public void ShouldNotBeEqualToOtherType() { var point1 = new CypherPoint(1, 135.37340722, 11.92245761); point1.Equals(new Node(1, new List <string>(), new Dictionary <string, object>())).Should().BeFalse(); point1.Equals(1).Should().BeFalse(); }
public void ShouldBeEqual3DWhenZisNaN() { var point1 = new CypherPoint(1, 135.37340722, 11.92245761, double.NaN); var point2 = new CypherPoint(1, 135.37340722, 11.92245761, double.NaN); point1.Equals(point2).Should().BeTrue(); }
public void ShouldNotBeEqual2DAnd3D() { var point1 = new CypherPoint(1, 135.37340722, 11.92245761); var point2 = new CypherPoint(1, 135.37340722, 11.92245761, double.NaN); point1.Equals(point2).Should().BeFalse(); }
public void ShouldBeEqual3D() { var point1 = new CypherPoint(1, 135.37340722, 11.92245761, 35.1201208); var point2 = new CypherPoint(1, 135.37340722, 11.92245761, 35.1201208); point1.Equals(point2).Should().BeTrue(); }
public void ShouldNotBeEqualToNull() { var point1 = new CypherPoint(1, 135.37340722, 11.92245761); point1.Equals(null).Should().BeFalse(); }