Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Uniject

Uniject, the Testability framework for Unity3D

  • Plain Old C Sharp, testable MonoBehaviour equivalents
  • Unit test your code outside of Unity
  • A robust and flexible way of creating GameObjects automatically, by inference of the code that drives them
  • Constructors!
  • An extremely flexible code base – in short, the benefits of DI + IOC.

Uniject comes integrated into a sample Unity project.

The code under test is a very simple mono behaviour equivalent that has a Sphere collider and a rigid body. When its transform falls below a threshold value, it resets it to the origin.

The project has a unit test that verifies this behaviour, and a sample scene that spawns an instance of it.

To run the Unit tests

Open the MonoDevelop project at src/test/Test.sln

The project is setup to reference the projects that Unity automatically generates, and has its own C Sharp project containing the unit tests.

To run the example scene

Open the project in Unity and load the 'example' scene.

Read on

About

Uniject, the Testability framework for Unity3D

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors