コード例 #1
0
        private void ExtractAisUpdateTimeFromHtml_OnReceivedNullCollection_NeverCallsIsRowTimeRowAndGetTrimmedTime2()
        {
            _creatorMock.Setup(mock => mock.CreateNodeCollection(It.IsAny <string>(), It.IsAny <string>())).Returns((HtmlNodeCollection)null);

            DateTime?result = _service.ExtractAisUpdateTimeFromHtml("html1", "html2");

            _stringParserMock.Verify(mock => mock.IsRowTimeRow(It.IsAny <string>()), Times.Never());
            _stringParserMock.Verify(mock => mock.GetTrimmedTime2(It.IsAny <string>()), Times.Never());
            Assert.Equal(new DateTime(2020, 10, 08), result);
        }