mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
Fix preview handlers failing unit tests in CI (#1856)
* Enable Unit tests for PreviewPane Test Assemblies in CI * Added Preview handlers unit tests project back * throw for Svg to debug tests * Removed failing test * Removed throw statement * Added MD unitests in yml * Run ui tests on STA thread * Throw svg to debug failing tests * Updated test adaptor * Removed failing test to validate CI * throw svg failing test with full stack trace * Check if mock stream is causing the issue * narrow down the failing tests code - 1 * narrow down the failing tests code -2 * dispose all controls * Restore SVg preview control * Update test adaptor and dependency to latest
This commit is contained in:
@@ -29,7 +29,7 @@ namespace UnitTests_PreviewHandlerCommon
|
||||
[DataTestMethod]
|
||||
[DataRow((uint)0)]
|
||||
[DataRow((uint)1)]
|
||||
public void FileBasedPreviewHandler_ShouldSetFilePath_WhenInitializeCalled(uint grfMode)
|
||||
public void StreamBasedPreviewHandler_ShouldSetStream_WhenInitializeCalled(uint grfMode)
|
||||
{
|
||||
// Arrange
|
||||
var streamBasedPreviewHandler = new TestStreamBasedPreviewHandler();
|
||||
|
||||
Reference in New Issue
Block a user