Skip to content

Commit

Permalink
Bug fixes and version update
Browse files Browse the repository at this point in the history
  • Loading branch information
tariksavas committed Jul 10, 2024
1 parent 6c6705d commit 904fabd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions Editor/TestFramework/UnitTest/TarjectUnitTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ public abstract class TarjectUnitTestFixture
protected DIContainer Container { get; set; } = new DIContainer();

[SetUp]
protected void SetupFixture()
{
Setup();
InjectToConstructors();
}

protected abstract void Setup();

private void InjectToConstructors()
{
Container.CompleteBindings();
}
}
}
8 changes: 4 additions & 4 deletions Samples/Prefabs/SceneInjecter.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 5411828318643517000}
- component: {fileID: 7860593057041340980}
- component: {fileID: 3395557070808099768}
m_Layer: 0
m_Name: SceneInjecter
m_TagString: Untagged
Expand All @@ -30,9 +30,9 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7860593057041340980
--- !u!114 &3395557070808099768
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -41,6 +41,6 @@ MonoBehaviour:
m_GameObject: {fileID: 5396205908393124399}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ee43dc7521b46ee4889dc1e14b35929b, type: 3}
m_Script: {fileID: 11500000, guid: d2afaab27ad7a0f43b6c4d3b0258e8c1, type: 3}
m_Name:
m_EditorClassIdentifier:
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.tariksavas.tarject",
"version": "0.1.6",
"version": "0.1.7",
"displayName": "Tarject",
"description": "This is a Dependency Injection Framework for Unity",
"unity": "2019.1",
Expand Down

0 comments on commit 904fabd

Please sign in to comment.