Exemplo n.º 1
0
        public void Translator()
        {
            var withTranslation = new SongContributor("tr. by John Mason Neale, 1818-66");

            Assert.AreEqual("John", withTranslation.FirstName());
            Assert.AreEqual("Mason", withTranslation.MiddleNamesOrParts());
            Assert.AreEqual("Neale", withTranslation.LastName());
            Assert.AreEqual("1818", withTranslation.Born());
            Assert.AreEqual("1866", withTranslation.Death());
            Assert.AreEqual(false, withTranslation.IsAlive());
            Assert.AreEqual("", withTranslation.Copyright());
            Assert.AreEqual(ContributionType.Translator, withTranslation.ContributionType());
        }
Exemplo n.º 2
0
        public void ValidNameAliveTest()
        {
            var test = new SongContributor("Richard Bewes, b. 1934 © Author/Jubilate Hymns");
            var asdf = test.FirstName();

            Assert.AreEqual("Richard", test.FirstName());
            Assert.AreEqual("", test.MiddleNamesOrParts());
            Assert.AreEqual("Bewes", test.LastName());
            Assert.AreEqual("1934", test.Born());
            Assert.AreEqual("", test.Death());
            Assert.AreEqual(true, test.IsAlive());
            Assert.AreEqual(ContributionType.Author, test.ContributionType());
            Assert.AreEqual("© Author/Jubilate Hymns", test.Copyright());
        }