From 7d1c95fa51b6a6b07e0b51d699ac2c2c93e4a897 Mon Sep 17 00:00:00 2001 From: RinaYou Date: Fri, 20 Apr 2018 11:30:35 +0900 Subject: [PATCH] [Xamarin][Non-ACR] Fixed wrong TCs Change-Id: I51abca562d8a48f8e56056c9f0d5abfa58f73f35 Signed-off-by: Rina You --- .../testcase/TSPlatformEffectTemplate.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tct-suite-vs/Tizen.XamarinForms4.Tests/testcase/TSPlatformEffectTemplate.cs b/tct-suite-vs/Tizen.XamarinForms4.Tests/testcase/TSPlatformEffectTemplate.cs index f7af2165c..65a3114f0 100755 --- a/tct-suite-vs/Tizen.XamarinForms4.Tests/testcase/TSPlatformEffectTemplate.cs +++ b/tct-suite-vs/Tizen.XamarinForms4.Tests/testcase/TSPlatformEffectTemplate.cs @@ -95,17 +95,23 @@ namespace Xamarin.Forms.Core.UnitTests 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(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(); } -- 2.34.1