using System; using UnitTestSharp; namespace Susurrus.UnitTests { public class SoundPackAttributeTests : TestFixture { public class CtorTests : TestFixture { public void KeepsTheFolder() { CheckEqual("Sounds/Effects", new SoundPackAttribute("Sounds/Effects").Folder); } public void TrailingSlashes_AreDropped() { CheckEqual("Sounds", new SoundPackAttribute("Sounds//").Folder); } public void NullFolder_Throws() { CheckThrow(typeof(ArgumentException)); new SoundPackAttribute(null); } public void EmptyFolder_Throws() { CheckThrow(typeof(ArgumentException)); new SoundPackAttribute(""); } } } }