-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
iury
committed
Jun 6, 2022
1 parent
7f11995
commit 41b21a3
Showing
3 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_CoreWindow.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Windows.UI.Xaml; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Windows.UI.ViewManagement; | ||
|
||
namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml | ||
{ | ||
[TestClass] | ||
public class Given_CoreWindow | ||
{ | ||
#if !WINDOWS_UWP | ||
[TestMethod] | ||
[RunsOnUIThread] | ||
public void CoreWindow_Bounds_Implemented() | ||
{ | ||
var w = new Windows.UI.Xaml.Window(); | ||
var vb = ApplicationView.GetForCurrentView().VisibleBounds; | ||
var SUT = w.CoreWindow.Bounds; | ||
|
||
Assert.AreEqual(vb.Width, SUT.Width); | ||
Assert.AreEqual(vb.Height, SUT.Height); | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters