Skip to content

Commit

Permalink
Update IsolatedFoundationTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Pellegrino committed Mar 3, 2023
1 parent f4b2f3f commit b8ccaf0
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions FemDesign.Tests/Entities/IsolatedFoundationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ public void FoundationConstructorTest1()

Assert.AreEqual("F", foundation.Identifier);
Assert.AreEqual(foundation.FoundationSystem, FoundationSystem.Simple);
Assert.AreEqual(1, foundation.Instance);

var foundation2 = GetFoundationTest();
Assert.AreEqual(2, foundation2.Instance);
}

private static IsolatedFoundation GetFoundationTest()
Expand All @@ -47,27 +43,5 @@ public static string SerializeToString(IsolatedFoundation isolatedFoundation)
return writer.ToString();
}
}

[TestCategory("FEM-Design required")]
[TestMethod("Open a Model")]
public void Open()
{
Model model = new Model(Country.S);

var rectangle = FemDesign.Geometry.Region.RectangleXY(Geometry.Point3d.Origin, 5, 5);
var point = new FemDesign.Geometry.Point3d(1, 1, 0);

var extrudedSolid = new Foundations.ExtrudedSolid(0.3, rectangle, false);
var materials = FemDesign.Materials.MaterialDatabase.GetDefault();
var material = materials.ByType().concrete[0];
var isolatedFoundation = new FemDesign.Foundations.IsolatedFoundation(extrudedSolid, 3000, material, point);

var elements = new List<GenericClasses.IStructureElement>() { isolatedFoundation };

model.AddElements(elements);
Console.WriteLine( model.SerializeToString() );
model.Open();
}

}
}
}

0 comments on commit b8ccaf0

Please sign in to comment.