-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish KissTnc project as nuget package (#155)
Updates to namespaces, filenames, classnames, and the release workflow to publish KissTnc as a nuget package.
- Loading branch information
1 parent
36965b2
commit 0200125
Showing
13 changed files
with
49 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace AprsSharp.Protocols.KISS; | ||
namespace AprsSharp.KissTnc; | ||
|
||
using System; | ||
using System.IO.Ports; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace AprsSharp.Protocols.KISS; | ||
namespace AprsSharp.KissTnc; | ||
|
||
using System.IO.Ports; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
namespace AprsSharpUnitTests.Protocols; | ||
namespace AprsSharpUnitTests.KissTnc; | ||
|
||
using AprsSharp.Protocols.KISS; | ||
using AprsSharp.KissTnc; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Moq; | ||
|
||
/// <summary> | ||
/// Test <see cref="SerialTNC"/> class. | ||
/// Test <see cref="SerialTnc"/> class. | ||
/// </summary> | ||
[TestClass] | ||
public class SerialTNCUnitTests : BaseTNCUnitTests<SerialTNC> | ||
public class SerialTncUnitTests : BaseTNCUnitTests<SerialTnc> | ||
{ | ||
/// <inheritdoc/> | ||
public override SerialTNC BuildTestTnc() | ||
public override SerialTnc BuildTestTnc() | ||
{ | ||
var mockPort = new Mock<ISerialConnection>(); | ||
mockPort.SetupGet(mock => mock.IsOpen).Returns(false); | ||
mockPort.Setup(mock => mock.Open()); | ||
mockPort.Setup(mock => mock.Write(It.IsAny<byte[]>(), It.IsAny<int>(), It.IsAny<int>())); | ||
|
||
return new SerialTNC(mockPort.Object, 0); | ||
return new SerialTnc(mockPort.Object, 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
namespace AprsSharpUnitTests.Protocols; | ||
namespace AprsSharpUnitTests.KissTnc; | ||
|
||
using AprsSharp.Protocols.KISS; | ||
using AprsSharp.KissTnc; | ||
using AprsSharp.Shared; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Moq; | ||
|
||
/// <summary> | ||
/// Test <see cref="TcpTNC"/> class. | ||
/// Test <see cref="TcpTnc"/> class. | ||
/// </summary> | ||
[TestClass] | ||
public class TcpTNCUnitTests : BaseTNCUnitTests<TcpTNC> | ||
public class TcpTncUnitTests : BaseTNCUnitTests<TcpTnc> | ||
{ | ||
/// <inheritdoc/> | ||
public override TcpTNC BuildTestTnc() | ||
public override TcpTnc BuildTestTnc() | ||
{ | ||
var mockConn = new Mock<ITcpConnection>(); | ||
mockConn.SetupGet(mock => mock.Connected).Returns(true); | ||
mockConn.Setup(mock => mock.AsyncReceive(It.IsAny<HandleReceivedBytes>())); | ||
mockConn.Setup(mock => mock.SendBytes(It.IsAny<byte[]>())); | ||
mockConn.Setup(mock => mock.SendString(It.IsAny<string>())); | ||
|
||
return new TcpTNC(mockConn.Object, 0); | ||
return new TcpTnc(mockConn.Object, 0); | ||
} | ||
} |