예제 #1
0
    void Fixture() {
      Configuration.ClearInstance();
      UpdateManager.ClearInstance();
      System.GC.Collect();

      var obj = new GameObject();
      config = obj.AddComponent<Configuration>();
      Assert.NotNull(config);
      umgr = obj.AddComponent<UpdateManager>();
      Assert.NotNull(umgr);

      char1 = new TestCharacter("char1");
      char2 = new TestCharacter("char2");
    }
예제 #2
0
        void Fixture()
        {
            Configuration.ClearInstance();
            UpdateManager.ClearInstance();
            System.GC.Collect();

            var obj = new GameObject();

            config = obj.AddComponent <Configuration>();
            Assert.NotNull(config);
            umgr = obj.AddComponent <UpdateManager>();
            Assert.NotNull(umgr);

            char1 = new TestCharacter("char1");
            char1.health.alignment = Alignment.Allied;
            char2 = new TestCharacter("char2");
            char2.health.alignment = Alignment.Enemy;
        }