mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[fxcop] preview handler common (#6762)
* FxCop adjustments * initing due to change for abstract
This commit is contained in:
@@ -19,6 +19,11 @@ namespace UnitTests_PreviewHandlerCommon
|
||||
|
||||
public class TestPreviewHandler : PreviewHandlerBase
|
||||
{
|
||||
public TestPreviewHandler()
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
public override void DoPreview()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -291,7 +296,7 @@ namespace UnitTests_PreviewHandlerCommon
|
||||
// Arrange
|
||||
var previewControlHandle = new IntPtr(5);
|
||||
var mockPreviewControl = new Mock<IPreviewHandlerControl>();
|
||||
mockPreviewControl.Setup(x => x.GetHandle())
|
||||
mockPreviewControl.Setup(x => x.GetWindowHandle())
|
||||
.Returns(previewControlHandle);
|
||||
|
||||
previewHandlerControl = mockPreviewControl.Object;
|
||||
|
||||
Reference in New Issue
Block a user