Beispiel #1
0
        public void TestDate()
        {
            // arrange
            string   dateTime     = "2021-02-11 10:00";
            string   format       = "yyyy-MM-dd HH:mm";
            DateTime expectedDate = DateTime.Parse("2021-02-11 10:00");

            // act
            ReportsGenerator.TryParseDateTime(dateTime, format, out DateTime result);

            // assert
            result.Should().BeSameDateAs(expectedDate);
        }