public void BeginTestMethod() { if (ImageLoader.IsRegistered("Cells") == false) { ImageLoader.AddImage("Cells", new Uri(@"..\..\..\Pentia\Resources\Cells.png", UriKind.Relative)); } if (AudioPlayer.IsRegistered("Pause") == false) { AudioPlayer.AddSource("Pause", new Uri(@"..\..\..\Pentia\Resources\Pause.wav", UriKind.Relative)); } if (AudioPlayer.IsRegistered("Restart") == false) { AudioPlayer.AddSource("Restart", new Uri(@"..\..\..\Pentia\Resources\Restart.wav", UriKind.Relative)); } if (AudioPlayer.IsRegistered("GameOver") == false) { AudioPlayer.AddSource("GameOver", new Uri(@"..\..\..\Pentia\Resources\GameOver.wav", UriKind.Relative)); } if (AudioPlayer.IsRegistered("DeleteRows") == false) { AudioPlayer.AddSource("DeleteRows", new Uri(@"..\..\..\Pentia\Resources\DeleteRows.wav", UriKind.Relative)); } if (AudioPlayer.IsRegistered("BGM") == false) { AudioPlayer.AddSource("BGM", new Uri(@"..\..\..\Pentia\Resources\BGM.mp3", UriKind.Relative)); } target.Initialize(page); }
public static void InitializeTarget(TestContext testContext) { if (AudioPlayer.IsRegistered("Pause") == false) { AudioPlayer.AddSource("Pause", new Uri(@"..\..\..\Pentia\Resources\Pause.wav", UriKind.Relative)); } }
private void setResources() { if (ImageLoader.IsRegistered("Cells") == false) { ImageLoader.AddImage("Cells", new Uri(Properties.Resources.Cells, UriKind.Relative)); } if (AudioPlayer.IsRegistered("Pause") == false) { AudioPlayer.AddSource("Pause", new Uri(Properties.Resources.Pause, UriKind.Relative)); } if (AudioPlayer.IsRegistered("Restart") == false) { AudioPlayer.AddSource("Restart", new Uri(Properties.Resources.Restart, UriKind.Relative)); } if (AudioPlayer.IsRegistered("GameOver") == false) { AudioPlayer.AddSource("GameOver", new Uri(Properties.Resources.GameOver, UriKind.Relative)); } if (AudioPlayer.IsRegistered("DeleteRows") == false) { AudioPlayer.AddSource("DeleteRows", new Uri(Properties.Resources.DeleteRows, UriKind.Relative)); } if (AudioPlayer.IsRegistered("BGM") == false) { AudioPlayer.AddSource("BGM", new Uri(Properties.Resources.BGM, UriKind.Relative)); } }