Revert "Add Test cases for app shortcut, managedapps"
[profile/tv/apps/dotnet/home.git] / HomeUnitTest / RecentTesting.cs
similarity index 74%
rename from HomeUnitTest/RecentTestCases.cs
rename to HomeUnitTest/RecentTesting.cs
index e9cba17..50f90b0 100644 (file)
@@ -22,31 +22,22 @@ using System.Linq;
 
 namespace HomeUnitTest
 {
-    /// <summary>
-    /// A test cases for RecentShortcutController
-    /// </summary>
     [TestClass]
-    public class RecentTestCases
+    public class RecentTesting
     {
-        /// <summary>
-        /// A instance of RecentShortcutController
-        /// </summary>
-        private RecentShortcutController controller;
-
-        /// <summary>
-        /// A constructor that initializes RecentShortcutController instance.
-        /// </summary>
-        public RecentTestCases()
+        public RecentTesting()
         {
-            controller = new RecentShortcutController();
+
         }
 
         [TestMethod]
-        public void RecentGetListTest()
+        public void GetListTest()
         {
-            var recents = controller.GetList();
+            RecentShortcutController recentShortcutController = new RecentShortcutController();
+
+            var recents = recentShortcutController.GetList();
 
-            // R : MAX number of recent = 10
+            // MAX number of recent = 10
             if (recents.Count() > 10)
             {
                 Assert.Fail("Too many Recent!!!, Returned = " + recents.Count());
@@ -73,7 +64,7 @@ namespace HomeUnitTest
                         break;
                 }
 
-                // R : Invalid Recent(id, label has 'invalid') should not included!!!
+                // Invalid Recent(id, label has 'invalid') should not included!!!
                 if (recent.CurrentStateDescription == null ||
                     recent.CurrentStateDescription.Label.ToLower().Contains("invalid"))
                 {
@@ -81,7 +72,7 @@ namespace HomeUnitTest
                 }
             }
 
-            // R : Test Sample Recent is consist of App and Media types.
+            // Test Sample Recent is consist of App and Media types.
             if (isAllMedias || isAllApps)
             {
                 Assert.Fail("Invalid Recent list, All Media({0}), All Apps({1})", isAllMedias, isAllApps);