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());
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"))
{
}
}
- // 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);