From 2b8ea5bdfb60851cee11acfa515b33f0e4ee0806 Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Mon, 24 Feb 2020 15:58:33 +0900 Subject: [PATCH] [Non-ACR][Smartcard][Delete OpenChannel TCTs] Change-Id: Ia55dbc1bdf4acc1e1150db0db7d5d95b078e3791 Signed-off-by: Jihoon Jung --- .../testcase/TSSmartcardSession.cs | 82 ---------------------- 1 file changed, 82 deletions(-) diff --git a/tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs b/tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs index 956d921..7c11565 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()); - } - } } } -- 2.7.4