public async Task Container_PROPERTY()
{
NavigationPage mainPage = (NavigationPage)Program.getApp().MainPage;
- /*TEST CODE*/
ContentPage contentPage = new ContentPage();
+ contentPage.Content = new StackLayout
+ {
+ Children =
+ {
+ new Button { Text = "Button" }
+ }
+ };
await mainPage.PushAsync(contentPage);
var customPlatformEffect = new CustomPlatformEffect();
- contentPage.Effects.Add(customPlatformEffect);
+ contentPage.Content.Effects.Add(customPlatformEffect);
var getContainer = customPlatformEffect.Container;
Assert.IsNotNull(getContainer, "Container should not null");
Assert.IsInstanceOf<ElmSharp.EvasObject>(getContainer, "Container should be return a object EvasObject");
Assert.AreEqual(getContainer.Color, ElmSharp.Color.Red, "Get value is not equal to set value");
- /* Postcondition:
- - Pop layout*/
+ /* Postcondition:
+ - Pop layout*/
await mainPage.PopAsync();
}