{
Assert.IsTrue(isNfcSupported == false || isCeSupported == false, "Method throw the NotSupportedException, but Tizen support the Nfc opearation");
}
+ catch (InvalidOperationException e)
+ {
+ Assert.IsTrue(e.Message.Equals("SecurityRestrictedError"), "It is normal operation because the application should have the platform certification");
+ }
}
[Test]
{
Assert.IsTrue(isNfcSupported == false || isCeSupported == false, "Method throw the NotSupportedException, but Tizen support the Nfc opearation");
}
+ catch (InvalidOperationException e)
+ {
+ Assert.IsTrue(e.Message.Equals("SecurityRestrictedError"), "It is normal operation because the application should have the platform certification");
+ }
}\r
\r
[Test]\r
{
Assert.IsTrue(isNfcSupported == false || isCeSupported == false, "Method throw the NotSupportedException, but Tizen support the Nfc opearation");
}
+ catch (InvalidOperationException e)
+ {
+ Assert.IsTrue(e.Message.Equals("SecurityRestrictedError"), "It is normal operation because the application should have the platform certification");
+ }
}
[Test]
[Test]
[Category("P2")]
- [Description("Register Aid with null value on AID param, and check Null Reference Exception.")]
+ [Description("Register Aid with null value on AID param, and check occur Argument Exception.")]
[Property("SPEC", "Tizen.Network.Nfc.NfcCardEmulationAdapter.RegisterAid M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
[Property("AUTHOR", "Jihoon Jung, jh8801.jung@samsung.com")]
- public void RegisterAid_CHECK_NULL_REFERENCE_EXCEPTION()
+ public void RegisterAid_CHECK_ARGUEMENT_EXCEPTION()
{
/*
* TEST CODE
/* TEST CODE */
ceAdapter.RegisterAid(NfcSecureElementType.Hce, NfcCardEmulationCategoryType.Other, aid);
- Assert.Fail( "RegisterAid method should be make the Null Reference Exception");
+ Assert.Fail( "RegisterAid method should be make the Argument Exception");
}
catch (NotSupportedException)
{
Assert.IsTrue(isNfcSupported == false || isHceSupported == false, "Method throw the NotSupportedException, but Tizen support the Nfc opearation");
}\r
- catch (Exception ex)\r
+ catch (ArgumentException ex)\r
{\r
- Assert.True(true, "Null Reference Exception occurs. Msg : " + ex.ToString());\r
+ Assert.True(true, "Argument Exception occurs. Msg : " + ex.ToString());\r
}
}
[Test]
[Category("P2")]
- [Description("Unregister Aid with null value on AID param, and check Null Reference Exception.")]
+ [Description("Unregister Aid with null value on AID param, and check occur Argument Exception.")]
[Property("SPEC", "Tizen.Network.Nfc.NfcCardEmulationAdapter.UnregisterAid M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
[Property("AUTHOR", "Jihoon Jung, jh8801.jung@samsung.com")]
- public void UnregisterAid_CHECK_NULL_REFERENCE_EXCEPTION()
+ public void UnregisterAid_CHECK_ARGUMENT_EXCEPTION()
{
/*
* TEST CODE
/* TEST CODE */
ceAdapter.UnregisterAid(NfcSecureElementType.Hce, NfcCardEmulationCategoryType.Other, aid);
- Assert.Fail( "UnregisterAid method should be make the Null Reference Exception");
+ Assert.Fail( "UnregisterAid method should be make the Argument Exception");
}
catch (NotSupportedException)
{
Assert.IsTrue(isNfcSupported == false || isHceSupported == false, "Method throw the NotSupportedException, but Tizen support the Nfc opearation");
}\r
- catch (Exception ex)\r
+ catch (ArgumentException ex)\r
{\r
- Assert.True(true, "Null Reference Exception occurs. Msg : " + ex.ToString());\r
+ Assert.True(true, "Argument Exception occurs. Msg : " + ex.ToString());\r
}
}
[Test]
[Category("P2")]
- [Description("Call GetRegisteredAidInformation method with null value on AID param, and check Null Reference Exception.")]
+ [Description("Call GetRegisteredAidInformation method with null value on AID param, and check Argument Exception.")]
[Property("SPEC", "Tizen.Network.Nfc.NfcCardEmulationAdapter.GetRegisteredAidInformation M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MEX")]
[Property("AUTHOR", "Jihoon Jung, jh8801.jung@samsung.com")]
- public void ForeachRegisteredAidInformations_CHECK_EXCEPTION()
+ public void ForeachRegisteredAidInformations_CHECK_ARGUMENT_EXCEPTION()
{
/*
* TEST CODE
/* TEST CODE */
ceAdapter.GetRegisteredAidInformation(0, 0);
- Assert.Fail("ForeachRegisteredAidInformations method should be make the exception");
+ Assert.Fail("ForeachRegisteredAidInformations method should be make the argument exception");
}
catch (NotSupportedException)
{
Assert.IsTrue(isNfcSupported == false || isHceSupported == false, "Method throw the NotSupportedException, but Tizen support the Nfc opearation");
}\r
- catch (Exception ex)\r
+ catch (ArgumentException ex)\r
{\r
- Assert.True(true, "Null Reference Exception occurs. Msg : " + ex.ToString());\r
+ Assert.True(true, "Argument Exception occurs. Msg : " + ex.ToString());\r
}
}
}