Exemple #1
0
        public void TestPeteTitleNoMatch()
        {
            var testClass = new TestAbumFormatter(FormatterSettingsTests.GetDefaultSettings());
            var title     = "99 Ways to Die";
            var result    = testClass.TestTitleStartsWithTrackNumber(title);

            Assert.IsFalse(result);

            var newTitle = testClass.TestTrimTrackFromTitle(title);

            Assert.AreEqual(title, newTitle);
        }
Exemple #2
0
        public void TestPeteTitleMatches()
        {
            var testClass = new TestAbumFormatter(FormatterSettingsTests.GetDefaultSettings());
            var title     = "01 - This is the track title";
            var result    = testClass.TestTitleStartsWithTrackNumber(title);

            Assert.IsTrue(result);

            var newTitle = testClass.TestTrimTrackFromTitle(title);

            Assert.AreEqual("This is the track title", newTitle);
        }