[Non-ACR][Smartcard][Delete OpenChannel TCTs] 26/225726/1
authorJihoon Jung <jh8801.jung@samsung.com>
Mon, 24 Feb 2020 06:58:33 +0000 (15:58 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Mon, 24 Feb 2020 06:59:34 +0000 (15:59 +0900)
Change-Id: Ia55dbc1bdf4acc1e1150db0db7d5d95b078e3791
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
tct-suite-vs/Tizen.Smartcard.Tests/testcase/TSSmartcardSession.cs

index 956d921..7c11565 100755 (executable)
@@ -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());
-            }
-        }
     }
 }