[NUI.Components][Non-ACR] Fixed warnings and remove unused 22/231922/4
authorzhouleonlei <zhouleon.lei@samsung.com>
Sun, 26 Apr 2020 12:13:40 +0000 (20:13 +0800)
committerTan Nguyen <nguyen.vtan@samsung.com>
Wed, 6 May 2020 04:12:59 +0000 (04:12 +0000)
Change-Id: Id3a6b8d311ad1f922c13ebaefe4f31fc8b5683a3

31 files changed:
tct-suite-vs/Tizen.NUI.Components.Tests/Program.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.ClickEventArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.StateChangedEventArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButtonStyle.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSLoading.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSLoadingStyle.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPopup.ButtonClickEventArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPopup.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSPopupStyle.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSProgress.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSProgressStyle.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSScrollBar.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSScrollBarStyle.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSlider.SlidingFinishedArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSlider.StateChangedArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSlider.ValueChangedArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSlider.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSliderStyle.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSStyleBase.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSStyleManager.ThemeChangeEventArgs.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSStyleManager.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSwitch.SelectEventArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSwitch.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSSwitchStyle.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSTab.ItemChangedEventArgs.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSTab.TabItemData.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSTab.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSTabStyle.cs [changed mode: 0644->0755]
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSToast.cs
tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSToastStyle.cs [changed mode: 0644->0755]

index b47e3c1..ec63c71 100755 (executable)
@@ -89,26 +89,6 @@ namespace Tizen.NUI.Components.Test
             //Tizen.Log.Fatal("NUI", "### OnCreate() END!");
         }
 
-        static public async Task MainTitleChangeBackgroundColor(Color color)
-        {
-            //if (color == null)
-            //{
-            //    Random rand = new Random();
-            //    color = new Color(rand.Next(250) / 255.0f, rand.Next(250) / 255.0f, rand.Next(250) / 255.0f, 1.0f);
-            //}
-            //MainTitle.BackgroundColor = color;
-            //await Task.Delay(1000);
-        }
-
-        static public async Task MainTitleChangeText(string title)
-        {
-            //MainTitle.Text = Title + title;
-            //MainTitle.PixelSize = TextSize;
-            //await Task.Delay(1000);
-
-            //Tizen.Log.Fatal("NUI", $"{title} Process ID: {Process.GetCurrentProcess().Id} Thread ID: {Thread.CurrentThread.ManagedThreadId}");
-        }
-
         protected override void OnResume()
         {
             base.OnResume();
index 3b85575..28b42b0 100755 (executable)
@@ -19,9 +19,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ButtonClickEventArgsTests");
-            App.MainTitleChangeBackgroundColor(null);
-
         }
 
         [TearDown]
index 88d1b9b..c645be3 100755 (executable)
@@ -18,9 +18,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()\r
         {\r
             Tizen.Log.Info(TAG, "Init() is called!");\r
-            App.MainTitleChangeText("ButtonStateChangedEventArgsTests");\r
-            App.MainTitleChangeBackgroundColor(null);\r
-\r
         }\r
 \r
         [TearDown]\r
old mode 100644 (file)
new mode 100755 (executable)
index 69e4838..de794b8
@@ -17,12 +17,6 @@ namespace Tizen.NUI.Components.Tests
         private const string TAG = "Components";
         private bool _stateChangedEvent = false;
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
-        private static bool _focusGainedFlag = false;
-        private static bool _focusLostFlag = false;
-        private static bool _updateFlag = false;
-        private static bool _themeFlag = false;
-        private static bool _measureTextFlag = false;
-        private static bool _layoutChildFlag = false;
         private static bool _flagGetViewStyle = false;
         private static bool _flagOnThemeChangedEvent = false;
 
@@ -31,9 +25,6 @@ namespace Tizen.NUI.Components.Tests
         {
             _stateChangedEvent = false;
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("CommonButtonTests");
-            App.MainTitleChangeBackgroundColor(null);
-
         }
 
         [TearDown]
@@ -93,8 +84,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the Exception: There is no style of defaultButtonX !");
             }
             catch(InvalidOperationException e)
-            {
-                Assert.Pass("InvalidOperationException: passed!");
+            {\r
+                if (e != null)
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }\r
             }
         }
 
@@ -337,7 +331,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(NullReferenceException e)
             {
-                Assert.Pass("NullReferenceException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }
             }
         }
 
@@ -387,8 +384,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the NullReferenceException!");
             }
             catch (NullReferenceException e)
-            {
-                Assert.Pass("NullReferenceException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }\r
             }
         }
 
@@ -445,8 +445,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the NullReferenceException!");
             }
             catch(NullReferenceException e)
-            {
-                Assert.Pass("NullReferenceException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }\r
             }
         }
 
@@ -496,8 +499,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the NullReferenceException!");
             }
             catch(NullReferenceException e)
-            {
-                Assert.Pass("NullReferenceException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }\r
             }
         }
 
@@ -546,8 +552,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the NullReferenceException!");
             }
             catch(NullReferenceException e)
-            {
-                Assert.Pass("NullReferenceException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }\r
             }
         }
 
@@ -605,11 +614,11 @@ namespace Tizen.NUI.Components.Tests
             Assert.IsNotNull(button, "Should be not null");
             Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
 
-            button.Style.IconPadding = new Extents(0, 0, 10, 10);
-            Assert.AreEqual(0, button.Style.IconPadding.Start, "Retrieved IconPadding.Start should be equal to set value");
-            Assert.AreEqual(0, button.Style.IconPadding.End, "Retrieved IconPadding.End should be equal to set value");
-            Assert.AreEqual(10, button.Style.IconPadding.Top, "Retrieved IconPadding.Top should be equal to set value");
-            Assert.AreEqual(10, button.Style.IconPadding.Bottom, "Retrieved IconPadding.Bottom should be equal to set value");
+            button.IconPadding = new Extents(0, 0, 10, 10);
+            Assert.AreEqual(0, button.IconPadding.Start, "Retrieved IconPadding.Start should be equal to set value");
+            Assert.AreEqual(0, button.IconPadding.End, "Retrieved IconPadding.End should be equal to set value");
+            Assert.AreEqual(10, button.IconPadding.Top, "Retrieved IconPadding.Top should be equal to set value");
+            Assert.AreEqual(10, button.IconPadding.Bottom, "Retrieved IconPadding.Bottom should be equal to set value");
         }
 
         [Test]
@@ -626,11 +635,11 @@ namespace Tizen.NUI.Components.Tests
             Assert.IsNotNull(button, "Should be not null");
             Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
 
-            button.Style.TextPadding = new Extents(0, 0, 10, 10);
-            Assert.AreEqual(0, button.Style.TextPadding.Start, "Retrieved TextPadding.Start should be equal to set value");
-            Assert.AreEqual(0, button.Style.TextPadding.End, "Retrieved TextPadding.End should be equal to set value");
-            Assert.AreEqual(10, button.Style.TextPadding.Top, "Retrieved TextPadding.Top should be equal to set value");
-            Assert.AreEqual(10, button.Style.TextPadding.Bottom, "Retrieved TextPadding.Bottom should be equal to set value");
+            button.TextPadding = new Extents(0, 0, 10, 10);
+            Assert.AreEqual(0, button.TextPadding.Start, "Retrieved TextPadding.Start should be equal to set value");
+            Assert.AreEqual(0, button.TextPadding.End, "Retrieved TextPadding.End should be equal to set value");
+            Assert.AreEqual(10, button.TextPadding.Top, "Retrieved TextPadding.Top should be equal to set value");
+            Assert.AreEqual(10, button.TextPadding.Bottom, "Retrieved TextPadding.Bottom should be equal to set value");
         }
 
         [Test]
index 28abd6a..d542fda 100755 (executable)
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ButtonStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 5851f74..64663d4 100755 (executable)
@@ -19,8 +19,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("LoadingTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -82,7 +80,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if (e != null)
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
old mode 100644 (file)
new mode 100755 (executable)
index 125dfbb..0215ae1
@@ -19,8 +19,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("LoadingStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 2d5a8b5..475354e 100755 (executable)
@@ -19,9 +19,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()\r
         {\r
             Tizen.Log.Info(TAG, "Init() is called!");\r
-            App.MainTitleChangeText("PopupButtonClickEventArgsTests");\r
-            App.MainTitleChangeBackgroundColor(null);\r
-\r
         }\r
 \r
         [TearDown]\r
index 827fead..3af1953 100755 (executable)
@@ -17,11 +17,6 @@ namespace Tizen.NUI.Components.Tests
         private const string TAG = "Components";\r
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";\r
         private string _path = Tizen.Applications.Application.Current.DirectoryInfo.Resource;\r
-        private static bool _focusGainedFlag = false;\r
-        private static bool _focusLostFlag = false;\r
-        private static bool _updateFlag = false;\r
-        private static bool _layoutChildFlag = false;\r
-        private static bool _themeFlag = false;\r
         private static bool _flagGetViewStyle = false;\r
         private static bool _flagOnThemeChangedEvent = false;\r
 \r
@@ -29,9 +24,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()\r
         {\r
             Tizen.Log.Info(TAG, "Init() is called!");\r
-            App.MainTitleChangeText("CommonPopupTests");\r
-            App.MainTitleChangeBackgroundColor(null);\r
-\r
         }\r
 \r
         [TearDown]\r
@@ -92,7 +84,10 @@ namespace Tizen.NUI.Components.Tests
             }\r
             catch(InvalidOperationException e)\r
             {\r
-                Assert.Pass("InvalidOperationException: passed!");\r
+                if (e != null)\r
+                {\r
+                    Assert.Pass("InvalidOperationException: passed!");\r
+                }\r
             }\r
         }\r
 \r
index 1a74c0b..8028790 100755 (executable)
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("PopupStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 5e6ef5b..919b9b6 100755 (executable)
@@ -23,8 +23,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ProgressTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -83,7 +81,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if (e != null)
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
old mode 100644 (file)
new mode 100755 (executable)
index d3db729..8d437c0
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ProgressStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 09d9039..ae8ad4c 100755 (executable)
@@ -14,7 +14,6 @@ namespace Tizen.NUI.Components.Tests
     public class ScrollBarTests\r
     {\r
         private const string TAG = "NUI.Components";\r
-        private string _style = "";\r
         private string _trackImageUrl = "";\r
         private static bool _flagGetViewStyle = false;\r
         private static bool _flagOnThemeChangedEvent = false;\r
@@ -23,8 +22,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()\r
         {\r
             Tizen.Log.Info(TAG, "Init() is called!");\r
-            App.MainTitleChangeText("ScrollBarTests");\r
-            App.MainTitleChangeBackgroundColor(null);\r
         }\r
 \r
         [TearDown]\r
@@ -85,7 +82,10 @@ namespace Tizen.NUI.Components.Tests
             }\r
             catch(InvalidOperationException e)\r
             {\r
-                Assert.Pass("InvalidOperationException: passed!");\r
+                if (e != null)\r
+                {\r
+                    Assert.Pass("InvalidOperationException: passed!");\r
+                }\r
             }\r
         }\r
 \r
@@ -342,7 +342,10 @@ namespace Tizen.NUI.Components.Tests
             }\r
             catch(ArgumentOutOfRangeException e)\r
             {\r
-                Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+                if (e != null)\r
+                {\r
+                    Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+                }\r
             }\r
         }\r
 \r
@@ -369,7 +372,10 @@ namespace Tizen.NUI.Components.Tests
             }\r
             catch(ArgumentOutOfRangeException e)\r
             {\r
-                Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+                if (e != null)\r
+                {\r
+                    Assert.Pass("ArgumentOutOfRangeException: passed!");\r
+                }\r
             }\r
         }\r
 \r
old mode 100644 (file)
new mode 100755 (executable)
index b86032c..eae41c3
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ScrollBarStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 6ffa276..36f697b 100755 (executable)
@@ -14,8 +14,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("SlidingFinishedArgsTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index e0823e0..769cf0a 100755 (executable)
@@ -14,8 +14,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("StateChangedArgsTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index f584b8a..13f084e 100755 (executable)
@@ -14,8 +14,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ValueChangedArgsTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index f711082..b5f33ff 100755 (executable)
@@ -11,9 +11,6 @@ namespace Tizen.NUI.Components.Tests
     [Description("Tizen.NUI.Components.Slider Tests")]
     public class SliderTests
     {
-        private bool _checkValue;
-        private bool _checkFinish;
-        private bool _checkMark;
         private const string TAG = "TCT";
         private string _image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
         private static bool _flagGetViewStyle = false;
@@ -21,9 +18,6 @@ namespace Tizen.NUI.Components.Tests
 
         public SliderTests()
         {
-            _checkValue = false;
-            _checkFinish = false;
-            _checkMark = false;
         }
 
         ~SliderTests()
@@ -34,8 +28,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("SliderTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -44,17 +36,6 @@ namespace Tizen.NUI.Components.Tests
             Tizen.Log.Info(TAG, "Destroy() is called!");
         }
 
-        public bool OnSlidingFinish(object obj, Slider.SlidingFinishedArgs args)
-        {
-            _checkFinish = true;
-            return true;
-        }
-
-        public void OnSliderValueChange(object obj, Slider.ValueChangedArgs args)
-        {
-            _checkValue = true;
-        }
-
         [Test]
         [Category("P1")]
         [Description("Create a Slider object. Check whether Slider is successfully created or not.")]
@@ -105,7 +86,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if (e != null)
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
@@ -313,7 +297,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(NullReferenceException e)
             {
-                Assert.Pass("NullReferenceException: passed!");
+                if (e != null)
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }
             }
         }
 
old mode 100644 (file)
new mode 100755 (executable)
index c015851..2e11d26
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("SliderStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
old mode 100644 (file)
new mode 100755 (executable)
index 1b8fdf2..9fd1cd0
@@ -15,14 +15,11 @@ namespace Tizen.NUI.Components.Tests
     public class StyleBaseTests
     {
         private const string TAG = "Components";
-        private static bool flagGetViewStyle = false;
 
         [SetUp]
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("StyleBaseTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -79,7 +76,6 @@ namespace Tizen.NUI.Components.Tests
             }
             protected override ViewStyle GetViewStyle()
             {
-                flagGetViewStyle = true;
                 return new SliderStyle();
             }
         }
old mode 100644 (file)
new mode 100755 (executable)
index 5663282..27a96da
@@ -14,8 +14,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ThemeChangeEventArgsTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 2eef4e3..3dedbc7 100755 (executable)
@@ -21,8 +21,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("StyleManagerTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -129,7 +127,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch (InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
@@ -150,7 +151,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch (InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
@@ -170,7 +174,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch (ArgumentException e)
             {
-                Assert.Pass("ArgumentException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("ArgumentException: passed!");
+                }
             }
         }
 
@@ -190,8 +197,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the InvalidOperationException!");
             }
             catch (InvalidOperationException e)
-            {
-                Assert.Pass("InvalidOperationException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }\r
             }
         }
 
@@ -252,8 +262,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the ArgumentException!");
             }
             catch (ArgumentException e)
-            {
-                Assert.Pass("ArgumentException: passed!");
+            {\r
+                if (e != null)
+                {
+                    Assert.Pass("ArgumentException: passed!");
+                }\r
             }
         }
 
@@ -273,7 +286,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch (ArgumentException e)
             {
-                Assert.Pass("ArgumentException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("ArgumentException: passed!");
+                }
             }
         }
 
@@ -293,7 +309,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(ArgumentException e)
             {
-                Assert.Pass("ArgumentException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("ArgumentException: passed!");
+                }
             }
         }
 
index ec7ddb2..c925ec0 100755 (executable)
@@ -19,9 +19,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()\r
         {\r
             Tizen.Log.Info(TAG, "Init() is called!");\r
-            App.MainTitleChangeText("SwitchSelectEventArgsTests");\r
-            App.MainTitleChangeBackgroundColor(null);\r
-\r
         }\r
 \r
         [TearDown]\r
index f8acd03..dd08387 100755 (executable)
@@ -23,8 +23,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()\r
         {\r
             Tizen.Log.Info(TAG, "Init() is called!");\r
-            App.MainTitleChangeText("CommonSwitchTests");\r
-            App.MainTitleChangeBackgroundColor(null);\r
         }\r
 \r
         [TearDown]\r
@@ -86,7 +84,10 @@ namespace Tizen.NUI.Components.Tests
             }\r
             catch(InvalidOperationException e)\r
             {\r
-                Assert.Pass("InvalidOperationException: passed!");\r
+                if (e != null)\r
+                {\r
+                    Assert.Pass("InvalidOperationException: passed!");\r
+                }\r
             }\r
         }\r
 \r
old mode 100644 (file)
new mode 100755 (executable)
index cc80bfd..2d52cb4
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("SwitchStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index a2dee75..165093d 100755 (executable)
@@ -14,8 +14,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ItemChangedEventArgsTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index 8470aff..e2a4fc4 100755 (executable)
@@ -13,8 +13,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("TabItemDataTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index dfcbf07..abca16b 100755 (executable)
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("TabTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -86,7 +84,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if (e != null)\r
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
@@ -167,8 +168,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the ArgumentException !");
             }
             catch(ArgumentException e)
-            {
-                Assert.Pass("ArgumentException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("ArgumentException: passed!");
+                }
             }
         }
 
@@ -380,8 +384,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the NullReferenceException!");
             }
             catch(NullReferenceException e)
-            {
-                Assert.Pass("NullReferenceException: passed!");
+            {\r
+                if (e != null)\r
+                {
+                    Assert.Pass("NullReferenceException: passed!");
+                }
             }
         }
 
@@ -462,8 +469,11 @@ namespace Tizen.NUI.Components.Tests
                 Assert.Fail("Should throw the ArgumentException!");
             }
             catch (ArgumentException e)
-            {
-                Assert.Pass("ArgumentException: passed!");
+            {\r
+                if (e != null)
+                {
+                    Assert.Pass("ArgumentException: passed!");
+                }\r
             }
         }
 
old mode 100644 (file)
new mode 100755 (executable)
index 162b234..d0094fb
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("TabStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
index dca8f78..39d871d 100755 (executable)
@@ -18,8 +18,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ToastTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]
@@ -79,7 +77,10 @@ namespace Tizen.NUI.Components.Tests
             }
             catch(InvalidOperationException e)
             {
-                Assert.Pass("InvalidOperationException: passed!");
+                if(e != null)\r
+                {
+                    Assert.Pass("InvalidOperationException: passed!");
+                }
             }
         }
 
old mode 100644 (file)
new mode 100755 (executable)
index fee81af..c0b09c0
@@ -20,8 +20,6 @@ namespace Tizen.NUI.Components.Tests
         public void Init()
         {
             Tizen.Log.Info(TAG, "Init() is called!");
-            App.MainTitleChangeText("ToastStyleTests");
-            App.MainTitleChangeBackgroundColor(null);
         }
 
         [TearDown]