public void WriteDateTimeAndReturnsContainsDataTime() { //Arrange var log = new DBLog(); var dataTime = DateTime.Now.ToString(); //Act log.Write(dataTime); //Assert Assert.IsTrue(log.Read().Contains(dataTime)); }