public void GetYear() { var child = _root.GetChild(@"Digitalfoto\2018\A-Albverein"); var actualYear = child.GetYear(); Assert.AreEqual("2018", actualYear); }
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); }