Skip to content

Commit

Permalink
🐛 remove deprecated composite test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinczandrea committed Oct 16, 2024
1 parent caf91fe commit 16f16db
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions FemDesign.Tests/Composites/CompositeBeamTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,53 +87,6 @@ public void CompositeBeamB()
Assert.AreEqual(complexCompositesOut.Count, complexCompositesIn.Count);
}

public void CompositeColumnA()
{
// Load material and sections from .struxml files
var materialsDB = Materials.MaterialDatabase.DeserializeStruxml(@"C:\Repos\femdesign-api\FemDesign.Tests\bin\Debug\Composites\materials.struxml");
var steel = materialsDB.MaterialByName("S 275");
var concrete = materialsDB.MaterialByName("C25/30");
var matList = new List<Materials.Material>() { steel, concrete };

var sectionsDB = Sections.SectionDatabase.DeserializeStruxml(@"C:\Repos\femdesign-api\FemDesign.Tests\bin\Debug\Composites\sections.struxml");
var steelSection = sectionsDB.SectionByName("Steel sections, HE-B, 300");
var concreteSection = sectionsDB.SectionByName("Unnamed, Concrete, 3");
var secList = new List<Sections.Section>() { steelSection, concreteSection };


// Create composite object
var composite = new Composites();

// Create composite section
string name = "TestColumnA1";
double cy = 80; //mm
double cz = 80; //mm
CompositeSection compositeSection = CompositeSection.FilledIProfile(steel, concrete, steelSection, name, cy, cz);

composite.CompositeSection = new List<CompositeSection>() { compositeSection };

//composite.CompositeSection[0].ParameterDictionary[CompositeParameterType.];
//var sth = GetCompositeSectionParameters(compositeSection);


// Create complex composite
ComplexComposite complexComposite = new ComplexComposite(compositeSection);
composite.ComplexComposite = new List<ComplexComposite>() { complexComposite };


// Serialize struxml
string fileName = "CompositeSerialization";
string filePath = @"D:\Andi\API_Work\0_Github\802_CompositeSections\tests\CSharp\" + fileName + ".struxml";
this.SerializeComposite(filePath, composite);

//Deserialize struxml
Composites inData = DeserializeComposite(filePath);

// Compare data
Assert.AreEqual(composite, inData);
}



public void SerializeComposite(string filePath, Composites composite)
{
Expand Down

0 comments on commit 16f16db

Please sign in to comment.