philipp2604.MockableSocket
3.0.0
dotnet add package philipp2604.MockableSocket --version 3.0.0
NuGet\Install-Package philipp2604.MockableSocket -Version 3.0.0
<PackageReference Include="philipp2604.MockableSocket" Version="3.0.0" />
paket add philipp2604.MockableSocket --version 3.0.0
#r "nuget: philipp2604.MockableSocket, 3.0.0"
// Install philipp2604.MockableSocket as a Cake Addin #addin nuget:?package=philipp2604.MockableSocket&version=3.0.0 // Install philipp2604.MockableSocket as a Cake Tool #tool nuget:?package=philipp2604.MockableSocket&version=3.0.0
MockableSocket
Description
This library aims to provide mockable classes for socket communication in .Net Core.
This library is still WIP and not complete yet.
A lot of the functionality has not been tested yet!
Implementations
Right now, the following interfaces and classes are implemented:
INetworkStream
withNetworkStreamW
as a replacement forNetworkStream
ISocket
withSocketW
as a replacement forSocket
ISocketAsyncEventArgs
as a replacement forSocketAsyncEventArgs
Additional wrappers:
ITcpClient
withTcpClient
as a replacement for the standard .NetTcpClient
Download
You can acquire this library either directly via the NuGet package manager or by downloading it from the NuGet Gallery.
Questions? Problems?
Feel free to reach out!
Ideas / TODO
- Wrappers, like TcpClient... ?
Credit
This library is using a lot of code from Microsoft's System.Net.Sockets
namespace, it's sole purpose is to enable easier mocking.
License
This library is MIT licensed.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.