[TearDown]\r
public void Destroy()\r
{\r
- StickerProvider.Deinitialize();\r
- StickerConsumer.Deleted -= DeleteEventOccurred;\r
- StickerConsumer.Deinitialize();\r
LogUtils.Write(LogUtils.DEBUG , LogUtils.TAG , "Postconditions for each TEST");\r
+\r
+ if (_featureSupported)\r
+ {\r
+ StickerProvider.Deinitialize();\r
+ StickerConsumer.Deleted -= DeleteEventOccurred;\r
+ StickerConsumer.Deinitialize();\r
+ }\r
+\r
GC.Collect();\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
public class GroupImageTests\r
{\r
private const string LogTag = "Sticker.Tests";\r
- private static bool _featureSupported = false;\r
- private static string _stickerFeature = "http://tizen.org/feature/ui_service.sticker";\r
private static GroupImage _groupImage;\r
\r
[SetUp]\r
public void Init()\r
{\r
LogUtils.Write(LogUtils.DEBUG, LogTag, "Preconditions for each TEST");\r
- System.Information.TryGetValue(_stickerFeature, out _featureSupported);\r
-\r
- if (_featureSupported)\r
- {\r
- _groupImage = new GroupImage("test", UriType.WebResource, "www.samsung.com");\r
- }\r
+ _groupImage = new GroupImage("test", UriType.WebResource, "www.samsung.com");\r
}\r
\r
[TearDown]\r
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
public void GroupImage_CONSTR()\r
{\r
- try\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:GroupImage_CONSTR");\r
- GroupImage groupImage = new GroupImage("test", UriType.WebResource, "www.samsung.com");\r
- Assert.IsInstanceOf<GroupImage>(groupImage, "Should return StickerData instance.");\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:GroupImage_CONSTR");\r
- }\r
- catch (Exception e)\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
- else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
- }\r
- }\r
-\r
- [Test]\r
- [Category("P2")]\r
- [Description("Check working of GroupImage constructor for exception")]\r
- [Property("SPEC", "Tizen.Uix.Sticker.GroupImage.GroupImage C")]\r
- [Property("SPEC_URL", "-")]\r
- [Property("CRITERIA", "CONSTX")]\r
- [Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
- public void GroupImage_CONSTX()\r
- {\r
-\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:GroupImage_CONSTX");\r
- if (!_featureSupported)\r
- {\r
- Assert.Throws<NotSupportedException>(() => { GroupImage groupImage = new GroupImage("test", UriType.WebResource, "www.samsung.com"); });\r
- }\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:GroupImage_CONSTX");\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:GroupImage_CONSTR");\r
+ GroupImage groupImage = new GroupImage("test", UriType.WebResource, "www.samsung.com");\r
+ Assert.IsInstanceOf<GroupImage>(groupImage, "Should return StickerData instance.");\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:GroupImage_CONSTR");\r
}\r
\r
[Test]\r
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
public void GroupName_READ_ONLY()\r
{\r
- try\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:GroupName_READ_ONLY");\r
- string groupName = _groupImage.GroupName;\r
- Assert.IsNotNull(groupName);\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:GroupName_READ_ONLY");\r
- }\r
- catch (Exception e)\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
- else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
- }\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:GroupName_READ_ONLY");\r
+ string groupName = _groupImage.GroupName;\r
+ Assert.IsNotNull(groupName);\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:GroupName_READ_ONLY");\r
}\r
\r
[Test]\r
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
public void UriType_READ_ONLY()\r
{\r
- try\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:UriType_READ_ONLY");\r
- UriType uriType = _groupImage.UriType;\r
- Assert.IsTrue(uriType == UriType.WebResource);\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:UriType_READ_ONLY");\r
- }\r
- catch (Exception e)\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
- else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
- }\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:UriType_READ_ONLY");\r
+ UriType uriType = _groupImage.UriType;\r
+ Assert.IsTrue(uriType == UriType.WebResource);\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:UriType_READ_ONLY");\r
}\r
\r
[Test]\r
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
public void Uri_READ_ONLY()\r
{\r
- try\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:Uri_READ_ONLY");\r
- string uri = _groupImage.Uri;\r
- Assert.IsNotNull(uri);\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:Uri_READ_ONLY");\r
- }\r
- catch (Exception e)\r
- {\r
- LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
- else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
- }\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:Uri_READ_ONLY");\r
+ string uri = _groupImage.Uri;\r
+ Assert.IsNotNull(uri);\r
+ LogUtils.Write(LogUtils.INFO, LogTag, "Completed TC:Uri_READ_ONLY");\r
}\r
\r
[Test]\r
[TearDown]\r
public void Destroy()\r
{\r
- StickerProvider.DeleteData(_testData);\r
- StickerProvider.Deinitialize();\r
- StickerConsumer.Inserted -= InsertEventOccurred;\r
- StickerConsumer.Deinitialize();\r
LogUtils.Write(LogUtils.DEBUG , LogUtils.TAG , "Postconditions for each TEST");\r
+\r
+ if (_featureSupported)\r
+ {\r
+ StickerProvider.DeleteData(_testData);\r
+ StickerProvider.Deinitialize();\r
+ StickerConsumer.Inserted -= InsertEventOccurred;\r
+ StickerConsumer.Deinitialize();\r
+ }\r
+\r
GC.Collect();\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
+ if (!_featureSupported)\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
+ if (!_featureSupported)\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
+ if (!_featureSupported)\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
-\r
-\r
[Test]\r
[Category("P1")]\r
[Description("Check working of StickerData Thumbnail property for no exception")]\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
[Property("COVPARAM", "Tizen.Uix.Sticker.StickerData")]\r
public void InsertData_InvalidOperationException()\r
{\r
- StickerProvider.Initialize();\r
try\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:InsertData_InvalidOperationException");\r
+ StickerProvider.Initialize();\r
StickerData stickerData = new StickerData();\r
stickerData.SetUri(UriType.WebResource, "www.StickerProviderTests.com/emoji/smile");\r
stickerData.AddKeyword("smile");\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
public void UpdateData_InvalidOperationException()\r
{\r
- StickerProvider.Initialize();\r
try\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:UpdateData_InvalidOperationException");\r
+ StickerProvider.Initialize();\r
StickerProvider.InsertData(_stickerData);\r
StickerProvider.UpdateData(_stickerData);\r
}\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is ArgumentException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]\r
public void SetGroupImage_InvalidOperationException()\r
{\r
- StickerProvider.Initialize();\r
try\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Executing TC:SetGroupImage_InvalidOperationException");\r
+ StickerProvider.Initialize();\r
StickerProvider.InsertData(_stickerData);\r
GroupImage groupImage = new GroupImage("tizen", UriType.LocalPath, "/res/invalid.png");\r
StickerProvider.SetGroupImage(groupImage);\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
if ((!_featureSupported) && (e is NotSupportedException))\r
{\r
- Assert.IsTrue(true);\r
+ Assert.Pass("Sticker feature is not supported");\r
}\r
else if (e is InvalidOperationException)\r
{\r
}\r
else\r
{\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r
[TearDown]\r
public void Destroy()\r
{\r
- StickerProvider.DeleteData(_testData);\r
- StickerProvider.Deinitialize();\r
- StickerConsumer.Updated -= UpdateEventOccurred;\r
- StickerConsumer.Deinitialize();\r
LogUtils.Write(LogUtils.DEBUG , LogUtils.TAG , "Postconditions for each TEST");\r
+\r
+ if (_featureSupported)\r
+ {\r
+ StickerProvider.DeleteData(_testData);\r
+ StickerProvider.Deinitialize();\r
+ StickerConsumer.Updated -= UpdateEventOccurred;\r
+ StickerConsumer.Deinitialize();\r
+ }\r
+\r
GC.Collect();\r
}\r
\r
catch (Exception e)\r
{\r
LogUtils.Write(LogUtils.INFO, LogTag, "Caught Exception" + e.ToString());\r
- if ((!_featureSupported) && (e is NotSupportedException))\r
- Assert.IsTrue(true);\r
+ if (!_featureSupported)\r
+ Assert.Pass("Sticker feature is not supported");\r
else\r
- Assert.IsTrue(false, "Caught Exception" + e.ToString());\r
+ Assert.Fail("Caught Exception" + e.ToString());\r
}\r
}\r
}\r