예제 #1
0
 public void TestUnregisterSystem_PassSystemThatDoesntRegistered_ThrowsException()
 {
     Assert.Throws <InvalidIdentifierException>(() =>
     {
         mSystemManager.UnregisterSystem((SystemId)0);
     });
 }
예제 #2
0
        public void Unregister()
        {
            if (!mIsRegistered)
            {
                return;
            }

            for (int i = 0; i < mSystemsIds.Count; ++i)
            {
                mSystemManager.UnregisterSystem(mSystemsIds[i]);
            }

            mIsRegistered = false;
        }