Beispiel #1
0
        public void testTestableExampleObjectResetsToOriginBelow100Metres()
        {
            TestableExample example = kernel.Get <TestableExample>();

            example.Obj.transform.Position = new Vector3(0, -101, 0);
            step(1);
            Assert.AreEqual(Vector3.zero, example.Obj.transform.Position);
        }
Beispiel #2
0
    public void Start()
    {
        TestableExample example = UnityInjector.get().Get <TestableExample>();

        example.Obj.name = "Example";
    }