public void LoadAsync_GetNotifiedOfProgress()
        {
            var engine = new FakeSongLoadEngine();
            IAsyncSongLoader loader = new AsyncSongLoader(engine);

            WaitedLoad(loader);
            engine.SignalProgress();
            Assert.AreEqual("1", listener.ProgressNoted);
        }
        public void LoadAsync_NotifiedOfEnd()
        {
            var engine = new FakeSongLoadEngine();
            IAsyncSongLoader loader = new AsyncSongLoader(engine);

            WaitedLoad(loader);

            Assert.IsTrue(listener.LoadCompleted);
        }
Beispiel #3
0
 public void OnLevelWasInitialized(int level)
 {
     if (level != SongLoader.MenuIndex)
     {
         return;
     }
     // CHANGE
     // SongLoader.OnLoad();
     AsyncSongLoader.OnLoad();
 }