Skip to content

Feature/watchdog thread #10

Feature/watchdog thread

Feature/watchdog thread #10

GitHub Actions / results succeeded Mar 18, 2024 in 0s

105 passed, 0 failed and 0 skipped

Tests passed successfully

✅ TestResults.xml

105 tests were completed in 2s with 105 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
OfficeToPDF.Tests. 7✅ 515ms
OfficeToPDF.Tests. 3✅ 8ms
OfficeToPDF.Tests. 7✅ 2ms
OfficeToPDF.Tests. 5✅ 2ms
OfficeToPDF.Tests. 2✅ 6ms
OfficeToPDF.Tests. 5✅ 2ms
OfficeToPDF.Tests. 2✅ 1ms
OfficeToPDF.Tests. 7✅ 1ms
OfficeToPDF.Tests. 9✅ 9ms
OfficeToPDF.Tests. 5✅ 0ms
OfficeToPDF.Tests. 3✅ 0ms
OfficeToPDF.Tests. 10✅ 0ms
OfficeToPDF.Tests. 1✅ 0ms
OfficeToPDF.Tests. 1✅ 0ms
OfficeToPDF.Tests. 11✅ 0ms
OfficeToPDF.Tests. 12✅ 0ms
OfficeToPDF.Tests. 1✅ 0ms
OfficeToPDF.Tests. 5✅ 4ms
OfficeToPDF.Tests. 3✅ 0ms
OfficeToPDF.Tests. 3✅ 0ms
OfficeToPDF.Tests. 3✅ 0ms

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenConstructedThenSetContainsTheExpectedNumber
  ✅ WhenConstructedTheSetContainsTheExpectedKeys
  ✅ WhenParsingHelpArgThenHelpShown
  ✅ WhenParsingQueryArgThenHelpShown
  ✅ WhenParsingTimeoutArgThenPropertyContainsValue
  ✅ WhenParsingTimeoutArgThenValueCaptured
  ✅ WhenParsingVersionArgThenExitCalled

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenParsingMetaCleanArgThenPropertyContainsCorrectValue("basic",Basic)
  ✅ WhenParsingMetaCleanArgThenPropertyContainsCorrectValue("full",Full)
  ✅ WhenParsingMetaCleanArgThenPropertyContainsCorrectValue(null,None)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue("single",SinglePage)
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue("onecol",OneColumn)
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue("twocolleft",TwoColumnLeft)
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue("twocolright",TwoColumnRight)
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue("twopageleft",TwoPageLeft)
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue("twopageright",TwoPageRight)
  ✅ WhenParsingPdfPageLayoutArgThenPropertyContainsCorrectValue(null,null)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenParsingPdfPageModeArgThenPropertyContainsCorrectValue("full",FullScreen)
  ✅ WhenParsingPdfPageModeArgThenPropertyContainsCorrectValue("none",UseNone)
  ✅ WhenParsingPdfPageModeArgThenPropertyContainsCorrectValue("bookmarks",UseOutlines)
  ✅ WhenParsingPdfPageModeArgThenPropertyContainsCorrectValue("thumbs",UseThumbs)
  ✅ WhenParsingPdfPageModeArgThenPropertyContainsCorrectValue(null,null)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenParsingReadonlyArgThenPropertyContainsCorrectValue("/readonly",True)
  ✅ WhenParsingReadonlyArgThenPropertyContainsCorrectValue(null,False)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenParsingTimeoutArgThenResultIsExpectedExitCode("100",Success)
  ✅ WhenParsingTimeoutArgThenResultIsExpectedExitCode("foo",Failed, InvalidArguments)
  ✅ WhenParsingTimeoutArgThenResultIsExpectedExitCode("_",Failed, InvalidArguments)
  ✅ WhenParsingTimeoutArgThenResultIsExpectedExitCode("de012",Failed, InvalidArguments)
  ✅ WhenParsingTimeoutArgThenResultIsExpectedExitCode("752xoq",Failed, InvalidArguments)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ArgParserTests
  ✅ WhenSettingPropertyValueThenCorrectValueSeen(True)
  ✅ WhenSettingPropertyValueThenCorrectValueSeen(False)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.COMServerTests
  ✅ GetProcessIdForExcelReturnsTheCorrectValue
  ✅ GetProcessIdForOutlookReturnsTheCorrectValue
  ✅ GetProcessIdForPowerPointReturnsTheCorrectValue
  ✅ GetProcessIdForProjectReturnsTheCorrectValue
  ✅ GetProcessIdForPublisherReturnsTheCorrectValue
  ✅ GetProcessIdForVisioReturnsTheCorrectValue
  ✅ GetProcessIdForWordReturnsTheCorrectValue

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("csv")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("ods")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xls")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xlsx")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xlt")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xltx")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xlsm")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xltm")
  ✅ FactoryReturnsCorrectTypeForExcelExtensions("xlsb")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForInvalidExtensions("xyz")
  ✅ FactoryReturnsCorrectTypeForInvalidExtensions("abc")
  ✅ FactoryReturnsCorrectTypeForInvalidExtensions("123")
  ✅ FactoryReturnsCorrectTypeForInvalidExtensions("_-&")
  ✅ FactoryReturnsCorrectTypeForInvalidExtensions("")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForOutlookExtensions("msg")
  ✅ FactoryReturnsCorrectTypeForOutlookExtensions("vcf")
  ✅ FactoryReturnsCorrectTypeForOutlookExtensions("ics")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("odp")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("ppt")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("pptx")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("pptm")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("pot")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("potm")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("potx")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("pps")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("ppsx")
  ✅ FactoryReturnsCorrectTypeForPowerPointExtensions("ppsm")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForProjectExtensions("mpp")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForPublisherExtensions("pub")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("vsd")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("vsdm")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("vsdx")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("vdx")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("vdw")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("svg")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("emf")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("emz")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("dwg")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("dxf")
  ✅ FactoryReturnsCorrectTypeForVisioExtensions("wmf")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForWordExtensions("rtf")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("odt")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("doc")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("dot")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("docx")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("dotx")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("docm")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("dotm")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("txt")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("html")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("htm")
  ✅ FactoryReturnsCorrectTypeForWordExtensions("wpd")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.ConverterFactoryTests
  ✅ FactoryReturnsCorrectTypeForXpsExtensions("xps")

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.WatchdogFactoryTests
  ✅ WhenCreateCalledThenWatchdogReturned(0)
  ✅ WhenCreateCalledThenWatchdogReturned(-1)
  ✅ WhenCreateCalledThenWatchdogReturned(10)
  ✅ WhenCreateCalledThenWatchdogReturned(100)
  ✅ WhenCreateCalledThenWatchdogReturned(1000)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.WatchdogFactoryTests
  ✅ WhenCreateCalledWithInvalidTimeoutThenNullWatchdogReturned(0)
  ✅ WhenCreateCalledWithInvalidTimeoutThenNullWatchdogReturned(-1)
  ✅ WhenCreateCalledWithInvalidTimeoutThenNullWatchdogReturned(-10)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.WatchdogFactoryTests
  ✅ WhenCreateCalledWithValidTimeoutThenWatchdogReturned(1)
  ✅ WhenCreateCalledWithValidTimeoutThenWatchdogReturned(10)
  ✅ WhenCreateCalledWithValidTimeoutThenWatchdogReturned(100)

✅ OfficeToPDF.Tests.

OfficeToPDF.Tests.WatchdogTests
  ✅ WhenWatchdogDoesNotTimesoutThenItIsNotTriggered
  ✅ WhenWatchdogStoppedThenNoExceptionsThown
  ✅ WhenWatchdogTimesoutsThenItIsTriggered