Commit 90150a2e authored by Brickner_cp's avatar Brickner_cp

--no commit message

--no commit message
parent 61e9792c
<?xml version="1.0" encoding="UTF-8"?>
<TestRunConfiguration name="Local Test Run" id="be17286c-6d1c-43dd-b068-e83867abf9c5" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
<Description>This is a default test run configuration for a local test run.</Description>
<CodeCoverage enabled="true">
<CodeCoverage enabled="true" keyFile="PcapDotNet.Core\PcapDotNet.Core.snk">
<Regular>
<CodeCoverageItem binaryFile="C:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\Packets.dll" pdbFile="C:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\Packets.pdb" instrumentInPlace="true" />
<CodeCoverageItem binaryFile="c:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\PcapDotNet.Core.dll" pdbFile="c:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\PcapDotNet.Core.pdb" instrumentInPlace="true" />
</Regular>
</CodeCoverage>
......
......@@ -641,7 +641,7 @@ namespace PcapDotNet.Core.Test
Assert.AreEqual(DeviceAttributes.None, device.Attributes);
Assert.AreEqual(1, device.Addresses.Count);
DeviceAddress address = device.Addresses[0];
Assert.AreEqual("Address: INET 10.0.0.2 Netmask: INET 255.0.0.0 Broadcast: INET 255.255.255.255", address.ToString());
Assert.AreEqual("Address: " + SocketAddressFamily.Internet + " 10.0.0.2 Netmask: " + SocketAddressFamily.Internet + " 255.0.0.0 Broadcast: " + SocketAddressFamily.Internet + " 255.255.255.255", address.ToString());
PacketCommunicator communicator = device.Open();
try
{
......
......@@ -69,7 +69,7 @@ namespace PcapDotNet.Core.Test
{
dataLinkName = dataLink.Name;
}
catch (ArgumentException)
catch (InvalidOperationException)
{
// Ignore invalid values
continue;
......@@ -90,7 +90,7 @@ namespace PcapDotNet.Core.Test
}
[TestMethod]
[ExpectedException(typeof(ArgumentException))]
[ExpectedException(typeof(InvalidOperationException))]
public void NoDescriptionErrorTest()
{
PcapDataLink dataLink = GetInvalidDataLink();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment