[Storage][ACR-166][Add testcase for new api] 63/186763/2
authorpr.jung <pr.jung@samsung.com>
Tue, 14 Aug 2018 07:15:09 +0000 (16:15 +0900)
committerpr.jung <pr.jung@samsung.com>
Tue, 14 Aug 2018 07:17:23 +0000 (16:17 +0900)
Change-Id: I7c23c8a27dcf5378aad7093cd173d1520e129f0d
Signed-off-by: pr.jung <pr.jung@samsung.com>
tct-suite-vs/Tizen.System.Tests/testcase/TSStorage.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 9cd290c..e689e1e
@@ -358,8 +358,26 @@ namespace Tizen.System.Tests
 
             // TEST CODE
             var result = internalStorage.AvaliableSpace;
-            Assert.IsTrue(result > 0, "Availlable space should be greater than 0");
-            Debug(string.Format("Availlable space: {0}", result));
+            Assert.IsTrue(result > 0, "Available space should be greater than 0");
+            Debug(string.Format("Available space: {0}", result));
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Checkes if storage.AvailableSpace has positive value")]
+        [Property("SPEC", "Tizen.System.Storage.AvailableSpace A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRO")]
+        [Property("AUTHOR", "Pureum Jung, pr.jung@samsung.com")]
+        public static void AvailableSpace_READ_ONLY()
+        {
+            // PRECONDITION
+            Assert.IsNotNull(internalStorage, "PRECONDITION: Failed to get internal storage for testing.");
+
+            // TEST CODE
+            var result = internalStorage.AvailableSpace;
+            Assert.IsTrue(result > 0, "Available space should be greater than 0");
+            Debug(string.Format("Available space: {0}", result));
         }
 
         [Test]