[Xamarin][Non-ACR] Fixed wrong TCs 48/176548/2
authorRinaYou <rina6350.you@samsung.com>
Fri, 20 Apr 2018 02:30:35 +0000 (11:30 +0900)
committerRinaYou <rina6350.you@samsung.com>
Fri, 20 Apr 2018 02:52:28 +0000 (11:52 +0900)
Change-Id: I51abca562d8a48f8e56056c9f0d5abfa58f73f35
Signed-off-by: Rina You <rina6350.you@samsung.com>
tct-suite-vs/Tizen.XamarinForms4.Tests/testcase/TSPlatformEffectTemplate.cs

index f7af216..65a3114 100755 (executable)
@@ -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<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();
         }