public void ShouldFixAllNames() { SoundEffectHolder seh = new SoundEffectHolder(); SoundDetails sd = new SoundDetails(); sd.FullPath = @"c:\Somewhere\Name Name Other.mp3"; seh.Add(sd); seh.FixNames(); seh.Sounds[0].Name.Should().Be("Name Other"); }
public void ShouldFixNames(string name, string fixedName) { SoundEffectHolder.FixName(name).Should().Be(fixedName); }