From: Jihoon Jung Date: Sun, 1 Mar 2020 23:29:17 +0000 (+0900) Subject: [Non-ACR][Smartcard][Delete OpenChannel TCTs] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05f4de9c0d66bc707ee4d538cbf806cf85b474b6;p=test%2Ftct%2Fcsharp%2Fapi.git [Non-ACR][Smartcard][Delete OpenChannel TCTs] - Duplicate : https://review.tizen.org/gerrit/#/c/test/tct/csharp/api/+/225726/ Change-Id: I42f02fef66e9bc3474a7d3411c478bf9a615d8e5 Signed-off-by: Jihoon Jung --- diff --git a/tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs b/tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs index 956d921e7..7c1156543 100755 --- a/tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs +++ b/tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs @@ -184,87 +184,5 @@ namespace Tizen.Network.Smartcard.Tests Assert.True(false, "Exception occurs. Msg : " + ex.ToString()); } } - - [Test] - [Category("P2")] - [Description("Open basic channel with null value on AID param, and check Null Reference Exception.")] - [Property("SPEC", "Tizen.Network.Smartcard.SmartcardSession.OpenBasicChannel M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MEX")] - [Property("AUTHOR", "Jihoon Jung, jh8801.jung@samsung.com")] - public void OpenBasicChannel_CHECK_NULL_REFERENCE_EXCEPTION() - { - /* - * TEST CODE - */ - try - { - readers = SmartcardManager.GetReaders(); - - foreach (SmartcardReader reader in readers) - { - if (reader.IsSecureElementPresent == false) - { - Assert.True(false, "SecureElement is not present on the reader with the name, " + reader.Name); - return; - } - - SmartcardSession session = reader.OpenSession(); - byte[] aid = null; - byte p2 = 0x00; - - session.OpenBasicChannel(aid, p2); - } - } - catch (NotSupportedException) - { - Assert.IsTrue(isSupported == false, "Method throw the NotSupportedException, but Tizen support the Smartcard opearation"); - } - catch (NullReferenceException ex) - { - Assert.True(true, "Null Reference Exception occurs. Msg : " + ex.ToString()); - } - } - - [Test] - [Category("P2")] - [Description("Open logical channel with null value on AID param, and check Null Reference Exception.")] - [Property("SPEC", "Tizen.Network.Smartcard.SmartcardSession.OpenLogicalChannel M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MEX")] - [Property("AUTHOR", "Jihoon Jung, jh8801.jung@samsung.com")] - public void OpenLogicalChannel_CHECK_NULL_REFERENCE_EXCEPTION() - { - /* - * TEST CODE - */ - try - { - readers = SmartcardManager.GetReaders(); - - foreach (SmartcardReader reader in readers) - { - if (reader.IsSecureElementPresent == false) - { - Assert.True(false, "SecureElement is not present on the reader with the name, " + reader.Name); - return; - } - - SmartcardSession session = reader.OpenSession(); - byte[] aid = null; - byte p2 = 0x00; - - session.OpenLogicalChannel(aid, p2); - } - } - catch (NotSupportedException) - { - Assert.IsTrue(isSupported == false, "Method throw the NotSupportedException, but Tizen support the Smartcard opearation"); - } - catch (NullReferenceException ex) - { - Assert.True(true, "Null Reference Exception occurs. Msg : " + ex.ToString()); - } - } } }