Пример #1
0
        public void GivenProbe_WhenMarkerCalled_ThenProbesMarker()
        {
            //Arrange
            string path = Helper.Path;

            Probe.Initialize(path);

            string marker = "First_Marker";

            //Act
            Probe.TouchMarker(marker, new DateTime(1984, 01, 01));

            //Assert
            Assert.IsTrue(Directory.Exists(path), "Marker File Not Found");
            Assert.AreEqual(File.GetLastWriteTime(Probe.FormulateMarkerPath(marker)).Date, new DateTime(1984, 01, 01), "Marker File Not Found");
        }