diff --git a/GsaGHTests/3_Components/0_Model/CreateGridLineTest.cs b/GsaGHTests/3_Components/0_Model/CreateGridLineTest.cs index 021360748..dcb848573 100644 --- a/GsaGHTests/3_Components/0_Model/CreateGridLineTest.cs +++ b/GsaGHTests/3_Components/0_Model/CreateGridLineTest.cs @@ -235,32 +235,4 @@ private static void SelectMetersInDropdown(GH_OasysDropDownComponent component) component.SetSelected(0, 2); } } - - [Collection("GrasshopperFixture collection")] - public class GsaGridLineTests { - - [Fact] - public void ShouldCalculateAngleBetweenXAxisAndLine() { - var line = new Line(Point3d.Origin, new Point3d(1, 1, 0)); - var gsaGridLine = new GsaGridLine(line, string.Empty); - - Assert.Equal(45, gsaGridLine.GridLine.Theta1, precision: 5); - } - - [Fact] - public void ShouldProvideTheClockwiseAngle() { - var line = new Line(Point3d.Origin, new Point3d(1, -1, 0)); - var gsaGridLine = new GsaGridLine(line, string.Empty); - - Assert.Equal(315, gsaGridLine.GridLine.Theta1, precision: 5); - } - [Fact] - public void ShouldProvideTheClockwiseAngle2() { - var line = new Line(Point3d.Origin, new Point3d(-1, -1, 0)); - var gsaGridLine = new GsaGridLine(line, string.Empty); - - Assert.Equal(225, gsaGridLine.GridLine.Theta1, precision: 5); - } - - } } diff --git a/GsaGHTests/3_Components/0_Model/GsaGridLineTests.cs b/GsaGHTests/3_Components/0_Model/GsaGridLineTests.cs new file mode 100644 index 000000000..e7137bd2e --- /dev/null +++ b/GsaGHTests/3_Components/0_Model/GsaGridLineTests.cs @@ -0,0 +1,36 @@ +using GsaGH.Parameters; + +using Rhino.Geometry; + +using Xunit; + +namespace GsaGHTests.Model { + [Collection("GrasshopperFixture collection")] + public class GsaGridLineTests { + + [Fact] + public void ShouldCalculateAngleBetweenXAxisAndLine() { + var line = new Line(Point3d.Origin, new Point3d(1, 1, 0)); + var gsaGridLine = new GsaGridLine(line, string.Empty); + + Assert.Equal(45, gsaGridLine.GridLine.Theta1, precision: 5); + } + + [Fact] + public void ShouldProvideTheClockwiseAngle() { + var line = new Line(Point3d.Origin, new Point3d(1, -1, 0)); + var gsaGridLine = new GsaGridLine(line, string.Empty); + + Assert.Equal(315, gsaGridLine.GridLine.Theta1, precision: 5); + } + + [Fact] + public void ShouldProvideTheClockwiseAngle2() { + var line = new Line(Point3d.Origin, new Point3d(-1, -1, 0)); + var gsaGridLine = new GsaGridLine(line, string.Empty); + + Assert.Equal(225, gsaGridLine.GridLine.Theta1, precision: 5); + } + + } +}