Skip to content

Commit

Permalink
GSAGH-367 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Reinhardt committed Oct 10, 2023
1 parent 3ba2681 commit b4b4632
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
21 changes: 9 additions & 12 deletions IntegrationTests/2_Parameters/0_Model/GsaList_Materials_Test.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Types;
using Xunit;

namespace IntegrationTests.Parameters {
[Collection("GrasshopperFixture collection")]

public class GsaList_Materials_Test {
public static GH_Document Document => document ?? (document = OpenDocument());
private static GH_Document document = null;
Expand All @@ -26,17 +24,16 @@ public void NoRuntimeWarningsTest() {
[Theory]
[InlineData("List from material Definitions", new string[] {
"MC1",
"MC1",
"MS1",
"MS1",
"MP1",
"MP1",
"M1",
"M1",
"MC1",
"MS1",
"MS1",
"MP1",
"MP1",
"M1",
"M1",
})]
public void MaterialDefinitionTest(string name, string[] expectedVals) {
GH_Document doc = Document;
IGH_Param param = Helper.FindParameter(doc, name);
public void MaterialDefinitionTest(string groupIdentifier, string[] expectedVals) {
IGH_Param param = Helper.FindParameter(Document, groupIdentifier);
var output = (List<GH_String>)param.VolatileData.get_Branch(0);
for (int i = 0; i < expectedVals.Length; i++) {
Assert.Equal(expectedVals[i], output[i].Value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

namespace IntegrationTests.Parameters {
[Collection("GrasshopperFixture collection")]

public class GsaList_Members_Test {
public static GH_Document Document => document ?? (document = OpenDocument());
private static GH_Document document = null;
Expand Down

0 comments on commit b4b4632

Please sign in to comment.