-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: moved test objects to separate project, only used from tests
- Loading branch information
Showing
13 changed files
with
163 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
using Grasshopper.Kernel; | ||
|
||
using Oasys.GH.Helpers; | ||
|
||
using Xunit; | ||
|
||
namespace AdSecGHTests.Helpers { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
|
||
using Grasshopper.Kernel; | ||
|
||
using Oasys.GH.Helpers; | ||
|
||
using Xunit; | ||
|
||
namespace AdSecGHTests.Helpers { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
using Grasshopper.Kernel; | ||
|
||
using Oasys.GH.Helpers; | ||
|
||
namespace AdSecGHTests.Helpers { | ||
|
||
public class Dummy : BusinessGlue<DummyBusiness> { | ||
public override GH_Exposure Exposure { get; } = GH_Exposure.hidden; | ||
public override Guid ComponentGuid => new Guid("CAA08C9E-417C-42AE-B704-91F214C8C871"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
|
||
using Oasys.Business; | ||
|
||
using Attribute = Oasys.Business.Attribute; | ||
|
||
namespace AdSecGHTests.Helpers { | ||
public class DummyBusiness : IBusinessComponent { | ||
|
||
public DoubleParameter Alpha { get; set; } = new DoubleParameter { | ||
Name = "Alpha", | ||
NickName = "A", | ||
Description = "Alpha description", | ||
Default = 1, | ||
}; | ||
public DoubleParameter Beta { get; set; } = new DoubleParameter { | ||
Name = "Beta", | ||
NickName = "B", | ||
Description = "Beta description", | ||
Default = 2, | ||
}; | ||
|
||
public ComponentAttribute Metadata { get; set; } = new ComponentAttribute { | ||
Name = "Dummy Business", | ||
NickName = "DB", | ||
Description = "Dummy Business Description", | ||
}; | ||
public ComponentOrganisation Organisation { get; set; } = new ComponentOrganisation { | ||
Category = "Dummy Category", | ||
SubCategory = "Dummy SubCategory", | ||
}; | ||
|
||
public Attribute[] GetAllInputAttributes() { | ||
return new[] { | ||
Alpha, | ||
}; | ||
} | ||
|
||
public Attribute[] GetAllOutputAttributes() { | ||
return new[] { | ||
Beta, | ||
}; | ||
} | ||
|
||
public void UpdateInputValues(params object[] values) { } | ||
|
||
public void Compute() { Beta.Value = (Alpha.Value * 2) + 10; } | ||
|
||
public void GetDefaultValues() { throw new NotImplementedException(); } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
using Grasshopper.Kernel; | ||
|
||
using Oasys.GH.Helpers; | ||
|
||
namespace AdSecGHTests.Helpers { | ||
public class DummyOasysComponent : BusinessOasysGlue<DummyBusiness> { | ||
|
||
public override GH_Exposure Exposure { get; } = GH_Exposure.hidden; | ||
|
||
public override Guid ComponentGuid => new Guid("CAA08C9E-417C-42AE-B734-91F214C8B87F"); | ||
|
||
protected override void SolveInstance(IGH_DataAccess DA) { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net48</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Grasshopper" Version="6.27.20176.5001"/> | ||
<PackageReference Include="RhinoCommon" Version="6.27.20176.5001"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\AdSecGH\AdSecGH.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="Properties\" /> | ||
</ItemGroup> | ||
|
||
</Project> |