[Description("Checks to create DnssdBrowser object with null parameter")]
[Property("SPEC", "Tizen.Network.Nsd.DnssdBrowser.DnssdBrowser C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTN, CONSTX")]
+ [Property("CRITERIA", "CONSTN")]
[Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
public void DnssdBrowser_INIT_CHECK_EXCEPTION()
{
/* TEST CODE */
try
{
- Assert.Throws<ArgumentException>(() => new DnssdBrowser(null));
+ var browser = new DnssdBrowser(null);
+ Assert.IsTrue(false, "ArgumentException or NotSupportedExceptin should be thrown");
}
catch (NotSupportedException)
{
Assert.IsTrue(s_isDnssdSupported == false, "Invalid NotSupportedException");
}
+ catch (ArgumentException)
+ {
+ Assert.IsTrue(true, "ArgumentException is thrown");
+ }
}
}
}
[Description("Checks to create DnssdService object with null parameter")]
[Property("SPEC", "Tizen.Network.Nsd.DnssdService.DnssdService C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTN, CONSTX")]
+ [Property("CRITERIA", "CONSTN")]
[Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
public void DnssdService_INIT_CHECK_EXCEPTION()
{
/* TEST CODE */
try
{
- Assert.Throws<ArgumentException>(() => new DnssdService(null));
+ var service = new DnssdService(null);
+ Assert.IsTrue(false, "ArgumentException or NotSupportedExceptin should be thrown");
}
catch (NotSupportedException)
{
Assert.IsTrue(s_isDnssdSupported == false, "Invalid NotSupportedException");
}
+ catch (ArgumentException)
+ {
+ Assert.IsTrue(true);
+ }
}
[Test]
Assert.IsNotNull(dnssdService, "PRECONDITION: Failed to get DnssdService for testing.");
dnssdService.Dispose();
}
+ catch (NotSupportedException)
+ {
+ Assert.IsTrue(s_isDnssdSupported == false, "Invalid NotSupportedException");
+ }
catch (Exception e)
{
Assert.Fail("There should be no exception " + e.ToString());
[Description("Checks to create SsdpBrowser object with null parameter")]
[Property("SPEC", "Tizen.Network.Nsd.SsdpBrowser.SsdpBrowser C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTN, CONSTX")]
+ [Property("CRITERIA", "CONSTN")]
[Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
public void SsdpBrowser_INIT_CHECK_EXCEPTION()
{
/* TEST CODE */
try
{
- Assert.Throws<ArgumentException>(() => new SsdpBrowser(null));
+ var browser = new SsdpBrowser(null);
+ Assert.IsTrue(false, "ArgumentException or NotSupportedExceptin should be thrown");
}
catch (NotSupportedException)
{
Assert.IsTrue(s_isSsdpSupported == false, "Invalid NotSupportedException");
}
+ catch (ArgumentException)
+ {
+ Assert.IsTrue(true, "ArgumentException is thrown");
+ }
}
}
}
[Description("Checks to create SsdpService object with null parameter")]
[Property("SPEC", "Tizen.Network.Nsd.SsdpService.SsdpService C")]
[Property("SPEC_URL", "-")]
- [Property("CRITERIA", "CONSTN, CONSTX")]
+ [Property("CRITERIA", "CONSTN")]
[Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
public void SsdpService_INIT_CHECK_EXCEPTION()
{
/* TEST CODE */
try
{
- Assert.Throws<ArgumentException>(() => new SsdpService(null));
+ var service = new SsdpService(null);
+ Assert.IsTrue(false, "ArgumentException or NotSupportedExceptin should be thrown");
}
catch (NotSupportedException)
{
Assert.IsTrue(s_isSsdpSupported == false, "Invalid NotSupportedException");
}
+ catch (ArgumentException)
+ {
+ Assert.IsTrue(true, "ArgumentException is thrown");
+ }
}
[Test]
Assert.IsNotNull(ssdpService, "PRECONDITION: Failed to get SsdpService for testing.");
ssdpService.Dispose();
}
+ catch (NotSupportedException)
+ {
+ Assert.IsTrue(s_isSsdpSupported == false, "Invalid NotSupportedException");
+ }
catch (Exception e)
{
Assert.Fail("There should be no exception " + e.ToString());