Skip to content

Commit

Permalink
GSAGH-367 fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Reinhardt committed Oct 9, 2023
1 parent 26e8096 commit 3389194
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GsaGHTests/2_GooWrappers/GsaAnnotationGooTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void GetGeometryAnnotationDotTest() {
public void TransformAnnotation3dTest() {
var transform = Transform.Translation(new Vector3d(1, 1, 1));
var anno3d = new GsaAnnotationGoo(GsaAnnotation3dTests.Annotation3dMother());
var transformed = (IGsaAnnotation)anno3d.Transform(transform);
IGsaAnnotation transformed = ((GsaAnnotationGoo)anno3d.Transform(transform)).Value;
Assert.NotNull(transformed);
Assert.Equal(2, transformed.Location.X, 2);
Assert.Equal(2, transformed.Location.Y, 2);
Expand All @@ -131,7 +131,7 @@ public void TransformAnnotation3dTest() {
public void TransformAnnotationDotTest() {
var transform = Transform.Translation(new Vector3d(1, 1, 1));
var annoDot = new GsaAnnotationGoo(GsaAnnotationDotTests.AnnotationDotMother());
var transformed = (IGsaAnnotation)annoDot.Transform(transform);
IGsaAnnotation transformed = ((GsaAnnotationGoo)annoDot.Transform(transform)).Value;
Assert.NotNull(transformed);
Assert.Equal(2, transformed.Location.X, 2);
Assert.Equal(2, transformed.Location.Y, 2);
Expand All @@ -145,7 +145,7 @@ public void TransformAnnotationDotTest() {
public void MorphAnnotation3dTest() {
var morph = new StretchSpaceMorph(new Point3d(0, 0, 0), new Point3d(10, 10, 10), 10);
var anno3d = new GsaAnnotationGoo(GsaAnnotation3dTests.Annotation3dMother());
var morphed = (IGsaAnnotation)anno3d.Morph(morph);
IGsaAnnotation morphed = ((GsaAnnotationGoo)anno3d.Morph(morph)).Value;
Assert.NotNull(morphed);
Assert.Equal(0.88, morphed.Location.X, 2);
Assert.Equal(0.88, morphed.Location.Y, 2);
Expand All @@ -159,7 +159,7 @@ public void MorphAnnotation3dTest() {
public void MorphAnnotationDotTest() {
var morph = new StretchSpaceMorph(new Point3d(0, 0, 0), new Point3d(10, 10, 10), 10);
var annoDot = new GsaAnnotationGoo(GsaAnnotationDotTests.AnnotationDotMother());
var morphed = (IGsaAnnotation)annoDot.Morph(morph);
var morphed = ((GsaAnnotationGoo)annoDot.Morph(morph)).Value;
Assert.NotNull(morphed);
Assert.Equal(0.88, morphed.Location.X, 2);
Assert.Equal(0.88, morphed.Location.Y, 2);
Expand Down

0 comments on commit 3389194

Please sign in to comment.