[Non-ACR][SecureRepository] Add missing asserts to SecureRepository tests 25/225125/3
authorTomasz Swierczek <t.swierczek@samsung.com>
Mon, 17 Feb 2020 11:52:16 +0000 (12:52 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 19 Feb 2020 05:57:36 +0000 (06:57 +0100)
Change-Id: I3e05386cba663d8483f3602939ea180dfa31e8b6

tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSManager.cs
tct-suite-vs/Tizen.Securerepository.Tests/testcase/TSPkcs12Manager.cs
tct-suite-vs/Tizen.TEEC.Tests/testcase/TSLoginMethod.cs

index d05cfd1..d6eae69 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -144,9 +144,9 @@ namespace Tizen.Security.SecureRepository.Tests
             DataManager.Save(_alias, Util.GenerateRandom(100), new Policy());
 
             /* TEST CODE */
-            Manager.SetPermission(
+            Assert.DoesNotThrow(() => Manager.SetPermission(
                 _alias, "other_package_id",
-                (int) Permission.Read | (int)Permission.Remove);
+                (int) Permission.Read | (int)Permission.Remove));
 
             /*
              * POSTCONDITION
index 5a0591e..47b3080 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -96,7 +96,7 @@ namespace Tizen.Security.SecureRepository.Tests
             var p12 = GetPkcs12();
 
             /* TEST CODE */
-            Pkcs12Manager.Save(_alias, p12, new Policy(), new Policy());
+            Assert.DoesNotThrow(() => Pkcs12Manager.Save(_alias, p12, new Policy(), new Policy()));
             AssertEqual(p12, Pkcs12Manager.Get(_alias, null, null));
 
             /*
index a1290d4..1c2513c 100755 (executable)
@@ -26,7 +26,7 @@ namespace Tizen.Security.TEEC.Tests
         [Property("AUTHOR", "Krzysztof Dynowski, k.dynowski@samsung.com")]
         public void LoginMethod_CREATE_CHECK()
         {
-            LoginMethod m = new LoginMethod();
+            Assert.DoesNotThrow(() => new LoginMethod());
         }
 
     }