Commit 5d2a937d authored by Brickner_cp's avatar Brickner_cp

--no commit message

--no commit message
parent 90150a2e
......@@ -645,6 +645,7 @@ namespace PcapDotNet.Core.Test
PacketCommunicator communicator = device.Open();
try
{
Assert.AreEqual(new PacketTotalStatistics(0, 0, 0, 0), communicator.TotalStatistics);
communicator.SetKernelBufferSize(2 * 1024 * 1024); // 2 MB instead of 1
communicator.SetKernelMinimumBytesToCopy(10); // 10 bytes minimum to copy
communicator.SetSamplingMethod(new SamplingMethodNone());
......@@ -656,7 +657,6 @@ namespace PcapDotNet.Core.Test
Assert.AreEqual(PacketCommunicatorMode.Capture, communicator.Mode);
Assert.IsFalse(communicator.NonBlocking);
Assert.AreEqual(PacketDevice.DefaultSnapshotLength, communicator.SnapshotLength);
Assert.AreEqual(new PacketTotalStatistics(0, 0, 0, 0), communicator.TotalStatistics);
return communicator;
}
catch (Exception)
......
......@@ -57,7 +57,7 @@ namespace PcapDotNet.Core.Test
#endregion
[TestMethod]
public void ConstructorsTest()
public void TestValidDataLinks()
{
PcapDataLink dataLink = new PcapDataLink();
Assert.AreEqual(new PcapDataLink("NULL"), dataLink);
......@@ -76,8 +76,11 @@ namespace PcapDotNet.Core.Test
}
Assert.AreEqual(new PcapDataLink(dataLinkName), dataLink);
Assert.IsTrue(new PcapDataLink(dataLinkName) == dataLink);
Assert.IsFalse(new PcapDataLink(dataLinkName) != dataLink);
Assert.IsNotNull(dataLink.Description);
Assert.AreEqual(i, dataLink.Value);
Assert.AreEqual(dataLink.Value.GetHashCode(), dataLink.GetHashCode());
}
}
......
......@@ -12,6 +12,7 @@ namespace PcapDotNet { namespace Core
static array<System::Byte>^ UnamangedToManagedByteArray(const unsigned char* unmanagedByteArray, int offset, int count);
private:
[System::Diagnostics::DebuggerNonUserCode]
MarshalingServices(){}
};
}}
\ No newline at end of file
......@@ -3,7 +3,7 @@
#include "DeviceAddress.h"
#include "BerkeleyPacketFilter.h"
#include "PacketDumpFile.h"
#include "PacketDeviceOpenFlags.h"
#include "PacketDeviceOpenAttributes.h"
#include "PacketSampleStatistics.h"
#include "PacketTotalStatistics.h"
#include "PcapDataLink.h"
......
......@@ -10,6 +10,7 @@ namespace PcapDotNet { namespace Core
static void GetPcapHeader(pcap_pkthdr &header, Packets::Packet^ packet);
private:
[System::Diagnostics::DebuggerNonUserCode]
PacketHeader(){}
};
}}
\ No newline at end of file
......@@ -11,6 +11,7 @@ namespace PcapDotNet { namespace Core
}
private:
[System::Diagnostics::DebuggerNonUserCode]
PcapLibrary(){}
};
}}
\ No newline at end of file
......@@ -258,7 +258,7 @@
>
</File>
<File
RelativePath=".\PacketDeviceOpenFlags.h"
RelativePath=".\PacketDeviceOpenAttributes.h"
>
</File>
<File
......
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