Issue #7: Use different sound when tests failed

Issue #5: Custom sounds
This commit is contained in:
Vitalii Ganzha 2016-01-05 17:25:06 -08:00
parent 9de93268f2
commit df15518a52
13 changed files with 488 additions and 106 deletions

View file

@ -1,4 +1,4 @@
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell;
using System;
using System.Collections.Generic;
using System.Linq;
@ -18,7 +18,7 @@ namespace VitaliiGanzha.VsDingExtension
eventTypeToSoundPlayerMapping[EventType.BuildCompleted] = new List<SoundPlayer>() { new SoundPlayer(Resources.build) };
eventTypeToSoundPlayerMapping[EventType.BreakpointHit] = new List<SoundPlayer>() { new SoundPlayer(Resources.debug) };
eventTypeToSoundPlayerMapping[EventType.TestsCompletedSuccess] = new List<SoundPlayer>() { new SoundPlayer(Resources.ding) };
eventTypeToSoundPlayerMapping[EventType.TestsCompletedFailure] = new List<SoundPlayer>() { new SoundPlayer(Resources.ding) }; // TODO: different sound for failed tests
eventTypeToSoundPlayerMapping[EventType.TestsCompletedFailure] = new List<SoundPlayer>() { new SoundPlayer(Resources.test_failed) };
}
public void PlaySoundSafe(EventType eventType)
@ -66,6 +66,7 @@ namespace VitaliiGanzha.VsDingExtension
public enum EventType
{
None,
BuildCompleted,
BreakpointHit,
TestsCompletedSuccess,