Skip to content

Commit

Permalink
Fix stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyIX committed May 16, 2024
1 parent 82a042e commit be1e415
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Microsoft.Maui.Controls.Core.UnitTests
{
class ApplicationStub : IApplication
{
bool IElement.IsPlatformViewNew { get; set; }
readonly List<IWindow> _windows = new List<IWindow>();

public IElementHandler Handler { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace Microsoft.Maui.DeviceTests.Stubs
{
class MauiAppNewWindowStub : IApplication
{
bool IElement.IsPlatformViewNew { get; set; }
readonly IWindow _window;
Window Window => _window as Window;

Expand Down
2 changes: 2 additions & 0 deletions src/Core/tests/Benchmarks/Stubs/ApplicationStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ namespace Microsoft.Maui.Handlers.Benchmarks
class ApplicationStub : IApplication
{
readonly List<IWindow> _windows = new List<IWindow>();

bool IElement.IsPlatformViewNew { get; set; }

public IElementHandler Handler { get; set; }

Expand Down
1 change: 1 addition & 0 deletions src/Core/tests/Benchmarks/Stubs/StubBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace Microsoft.Maui.Handlers.Benchmarks
{
public class StubBase : IView
{
bool IElement.IsPlatformViewNew { get; set; }
IElementHandler IElement.Handler
{
get => Handler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Microsoft.Maui.DeviceTests.Stubs
{
public class CoreApplicationStub : IApplication
{
bool IElement.IsPlatformViewNew { get; set; }
IWindow _singleWindow;

readonly List<IWindow> _windows = new List<IWindow>();
Expand Down
2 changes: 2 additions & 0 deletions src/Core/tests/DeviceTests.Shared/Stubs/WindowStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public WindowStub()
HashSet<IWindowOverlay> _overlays = new HashSet<IWindowOverlay>();
List<IVisualTreeElement> _visualChildren = new List<IVisualTreeElement>();

bool IElement.IsPlatformViewNew { get; set; }

public IElementHandler Handler { get; set; }

public IElement Parent { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/Core/tests/DeviceTests/Stubs/ElementStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{
public class ElementStub : IElement
{
bool IElement.IsPlatformViewNew { get; set; }
public IElement Parent { get; set; }

public IElementHandler Handler { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/Core/tests/UnitTests/Layouts/ZIndexTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ZIndexTests
// These tests need a real collection to work with; we can't reasonably use a substitute here
class FakeLayout : ILayout, IList<IView>
{
bool IElement.IsPlatformViewNew { get; set; }
public bool ClipsToBounds { get; set; }


Expand Down
1 change: 1 addition & 0 deletions src/Core/tests/UnitTests/TestClasses/ApplicationStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Microsoft.Maui.UnitTests
{
class ApplicationStub : IApplication
{
bool IElement.IsPlatformViewNew { get; set; }
readonly List<IWindow> _windows = new List<IWindow>();

public IElementHandler Handler { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/Core/tests/UnitTests/TestClasses/ViewStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace Microsoft.Maui.UnitTests
{
class ViewStub : IViewStub
{
bool IElement.IsPlatformViewNew { get; set; }
IElementHandler IElement.Handler
{
get => Handler;
Expand Down

0 comments on commit be1e415

Please sign in to comment.