[Non-ACR][WatchfaceComplication] Fix missing dispose 75/222875/1
authorhyunho <hhstark.kang@samsung.com>
Tue, 21 Jan 2020 04:21:42 +0000 (13:21 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Tue, 21 Jan 2020 04:43:21 +0000 (04:43 +0000)
Change-Id: I3424e021d58a9708cdf330a8c89245f7e17a5865
Signed-off-by: hyunho <hhstark.kang@samsung.com>
tct-suite-vs/Tizen.WatchfaceComplication.Tests/testcase/TSComplication.cs

index 126487e..f5f50b9 100644 (file)
@@ -34,8 +34,8 @@ namespace Tizen.Applications.WatchfaceComplication.Tests {
         private const double _expectMinRange = 1;
         private const double _expectMaxRange = 100;
         private const long _expectTimestamp = 777;
-        private const int _notEditedCompId = 10;
-        private const int _compId = 1;
+        private static int _notEditedCompId = 777;
+        private static int _compId = 1;
         private const string _providerId = "org.tizen.ComplicationProviderCsharp/battery";
         private const string _notExistProviderId = "org.tizen.notexist";
         public static bool _userDisposeCalled;
@@ -134,6 +134,8 @@ namespace Tizen.Applications.WatchfaceComplication.Tests {
         [TearDown]
         public void Destroy()
         {
+            _compId++;
+            _notEditedCompId++;
             LogUtils.Write(LogUtils.DEBUG , LogUtils.TAG , "Postconditions for each TEST");
         }
 
@@ -729,6 +731,7 @@ namespace Tizen.Applications.WatchfaceComplication.Tests {
             Assert.IsNotNull(mc, "Object should not be null after initializing");
             Assert.IsInstanceOf<Complication>(mc, "Object should be instance of Complication");
             Assert.Throws<InvalidOperationException>(() => mc.TransferEvent(EventTypes.EventTap));
+            mc.Dispose();
         }
 
         [Test]