Skip to content

Commit

Permalink
fix name conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Jan 28, 2023
1 parent 240e9a1 commit c266b11
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/GShark.Test.XUnit/Geometry/Point3Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,20 @@ public void It_Checks_If_A_Point_Lies_On_A_Plane()
}

[Fact]
public void TestPointIsOnLine()
public void It_Check_Point_Is_On_Line()
{
//Arrange
Point3 p1 = new Point3(0, 5, 0);
Line line1 = new Line(new Point3(0,0,0), new Point3(0,10,0));
bool isOnLine1 = p1.IsOnLine(line1);
Assert.True(isOnLine1);
Point3 p2 = new Point3(0, 20, 0);
bool isOnLine = p2.IsOnLine(line1);
Assert.False(isOnLine);
Point3 p3 = new Point3(0, 0, 0);
Line line1 = new Line(new Point3(0,0,0), new Point3(0,10,0));
// Act
bool isOnLine = p2.IsOnLine(line1);
bool isOnLine1 = p1.IsOnLine(line1);
bool isOnLine2 = p3.IsOnLine(line1);
// Assert
Assert.False(isOnLine);
Assert.True(isOnLine1);
Assert.True(isOnLine2);

}
Expand Down

0 comments on commit c266b11

Please sign in to comment.