public void GetYear()
        {
            var child = _root.GetChild(@"Digitalfoto\2018\A-Albverein");

            var actualYear = child.GetYear();

            Assert.AreEqual("2018", actualYear);
        }
예제 #2
0
        public void TryCreate()
        {
            // Arrange
            var uut = _root.GetChild(@"Digitalfoto\2018\A-Albverein\A_2018-05-01_Maiwanderung");

            // Act
            var uutAsEventDirectory = uut as EventDirectory;

            // Assert
            Assert.IsNotNull(uutAsEventDirectory);

            Assert.AreEqual("A", uutAsEventDirectory.ClubChar);
            Assert.AreEqual("2018", uutAsEventDirectory.Year);
            Assert.AreEqual("05", uutAsEventDirectory.Month);
            Assert.AreEqual("01", uutAsEventDirectory.Day);
            Assert.AreEqual("Maiwanderung", uutAsEventDirectory.EventName);
        }