From 5e7e50f4fee71aef5a19a5df4387a953f245ca9e Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 23 Oct 2018 10:33:19 +0900 Subject: [PATCH] [NUI][Non-ACR] Fix WatchTime TCT for wearble WatchTime api get current time Change-Id: I45ab56751fb6d59637e34a4371ac093a9f76c1b4 Signed-off-by: huiyu.eun --- tct-suite-vs/Tizen.NUI.Tests/testcase/TSWatchTime.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWatchTime.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWatchTime.cs index ef1488d..ebd405b 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWatchTime.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWatchTime.cs @@ -76,7 +76,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int time = watchTime.Day; - Assert.AreEqual(0, time, "Should be the default value"); + Assert.IsTrue(time > 0.0f, "The Day is not correct!"); } else { @@ -122,7 +122,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int day = watchTime.DayOfWeek; - Assert.AreEqual(0, day, "Should be the default value"); + Assert.IsTrue(day > 0.0f, "The DayOfWeek is not correct!"); } else { @@ -145,7 +145,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int hour = watchTime.Hour; - Assert.AreEqual(0, hour, "Should be the default value"); + Assert.IsTrue(hour > 0.0f, "The hour is not correct!"); } else { @@ -168,7 +168,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int hour24 = watchTime.Hour24; - Assert.AreEqual(0, hour24, "Should be the default value"); + Assert.IsTrue(hour24 >= 0.0f, "The hour24 is not correct!"); } else { @@ -191,7 +191,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int millisecond = watchTime.Millisecond; - Assert.AreEqual(0, millisecond, "Should be the default value"); + Assert.IsTrue(millisecond >= 0.0f, "The millisecond is not correct!"); } else { @@ -214,7 +214,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int minute = watchTime.Minute; - Assert.AreEqual(0, minute, "Should be the default value"); + Assert.IsTrue(minute >= 0.0f, "The minute is not correct!"); } else { @@ -237,7 +237,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int month = watchTime.Month; - Assert.AreEqual(0, month, "Should be the default value"); + Assert.IsTrue(month > 0.0f, "The month is not correct!"); } else { @@ -260,7 +260,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int second = watchTime.Second; - Assert.AreEqual(0, second, "Should be the default value"); + Assert.IsTrue(second >= 0.0f, "The second is not correct!"); } else { @@ -283,7 +283,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); string zone = watchTime.TimeZone; - Assert.AreEqual("", zone, "Should be the default value"); + Assert.IsNotEmpty(zone, "TimeZone is empty"); } else { @@ -306,7 +306,7 @@ namespace Tizen.NUI.Tests var watchTime = new WatchTime(); Assert.IsInstanceOf(watchTime, "Should be an instance of WatchTime type."); int year = watchTime.Year; - Assert.AreEqual(0, year, "Should be the default value"); + Assert.IsTrue(year > 0.0f, "The Year is not correct!"); } else { -- 2.7.4