From: pr.jung Date: Tue, 14 Aug 2018 07:15:09 +0000 (+0900) Subject: [Storage][ACR-166][Add testcase for new api] X-Git-Tag: tct5.0_m2~111^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F186763%2F2;p=test%2Ftct%2Fcsharp%2Fapi.git [Storage][ACR-166][Add testcase for new api] Change-Id: I7c23c8a27dcf5378aad7093cd173d1520e129f0d Signed-off-by: pr.jung --- diff --git a/tct-suite-vs/Tizen.System.Tests/testcase/TSStorage.cs b/tct-suite-vs/Tizen.System.Tests/testcase/TSStorage.cs old mode 100755 new mode 100644 index 9cd290c..e689e1e --- a/tct-suite-vs/Tizen.System.Tests/testcase/TSStorage.cs +++ b/tct-suite-vs/Tizen.System.Tests/testcase/TSStorage.cs @@ -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]