Exemplo n.º 1
0
 public void SingletonIsDestroyedWhenCallingDestroySingleton()
 {
     Assert.NotNull(TestSingletonWithName.Instance);
     TestSingletonWithName.DestroySingleton();
     Assert.False(TestSingletonWithName.Exists);
     Assert.IsEmpty(Object.FindObjectsOfType <TestSingletonWithName>(), "Expected no singleton objects to exists after destroy was called");
 }
Exemplo n.º 2
0
 public void Teardown()
 {
     TestSingletonWithName.DestroySingleton();
     TestSingletonWithDefaultName.DestroySingleton();
     EditorApplication.isPlaying = false;
 }