Skip to content

Commit

Permalink
Merge pull request #102 from Rickedb/breaking-changes/mid-revision
Browse files Browse the repository at this point in the history
Breaking changes/mid revision
  • Loading branch information
Rickedb authored May 31, 2023
2 parents 0be6110 + 46a9a5a commit 9799caa
Show file tree
Hide file tree
Showing 466 changed files with 14,545 additions and 8,373 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: '3.1.414'
dotnet-version: |
3.1.x
6.0.x
- name: Build library (.net core)
run: dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
test:
Expand All @@ -25,7 +27,9 @@ jobs:
- name: Build and run .net core tests
uses: actions/setup-dotnet@master
with:
dotnet-version: '3.1.414'
dotnet-version: |
3.1.x
6.0.x
- name: Test Mids
run: |
dotnet build src/MIDTesters.Core/MIDTesters.Core.csproj
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: '3.1.414'
dotnet-version: |
3.1.x
6.0.x
- name: Build library (.net core)
run: dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
test:
Expand All @@ -23,7 +25,9 @@ jobs:
- name: Build and run .net core tests
uses: actions/setup-dotnet@master
with:
dotnet-version: '3.1.414'
dotnet-version: |
3.1.x
6.0.x
- name: Test Mids
run: |
dotnet build src/MIDTesters.Core/MIDTesters.Core.csproj
Expand All @@ -40,4 +44,4 @@ jobs:
- name: Publish NuGet
run: |
dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
nuget push src/OpenProtocolInterpreter/bin/release/OpenProtocolInterpreter.5.1.0.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate
nuget push src/OpenProtocolInterpreter/bin/release/OpenProtocolInterpreter.6.0.0.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,7 @@ But if you wish, you can support and help to motivate the constant improving of

### List of still unavailable Mids

- Mid 0009;
- Mid 0066;
- Mid 0700;
- Mid 0702;
- Mid 0703;
- Mid 0900;
- Mid 0901;
- Mid 1000;
Expand All @@ -325,7 +321,6 @@ But if you wish, you can support and help to motivate the constant improving of
- Mid 2100;
- Mid 2500;
- Mid 2501;
- Mid 2505;
- Mid 2600;
- Mid 2601;
- Mid 2602;
Expand Down
Binary file added dist/lib/net6/OpenProtocolInterpreter.dll
Binary file not shown.
5,185 changes: 5,185 additions & 0 deletions dist/lib/net6/OpenProtocolInterpreter.xml

Large diffs are not rendered by default.

Binary file modified dist/lib/netstandard2.0/OpenProtocolInterpreter.dll
Binary file not shown.
2,698 changes: 1,660 additions & 1,038 deletions dist/lib/netstandard2.0/OpenProtocolInterpreter.xml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/MIDTesters.Core/Alarm/TestMid0070.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0070 : DefaultMidTests<Mid0070>
{
[TestMethod]
[TestCategory("ASCII")]
public void Mid0070AllRevisions()
{
string pack = @"002000700021 ";
Expand All @@ -17,6 +19,7 @@ public void Mid0070AllRevisions()
}

[TestMethod]
[TestCategory("ByteArray")]
public void Mid0070ByteAllRevisions()
{
string pack = @"002000700021 ";
Expand Down
8 changes: 6 additions & 2 deletions src/MIDTesters.Core/Alarm/TestMid0071.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenProtocolInterpreter.Alarm;

namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0071 : DefaultMidTests<Mid0071>
{
[TestMethod]
[TestCategory("Revision 1"), TestCategory("ASCII")]
public void Mid0071Revision1()
{
string pack = @"00530071001 01E851021031042017-12-01:20:12:45";
Expand All @@ -21,6 +22,7 @@ public void Mid0071Revision1()
}

[TestMethod]
[TestCategory("Revision 1"), TestCategory("ByteArray")]
public void Mid0071ByteRevision1()
{
string pack = @"00530071001 01E851021031042017-12-01:20:12:45";
Expand All @@ -35,6 +37,7 @@ public void Mid0071ByteRevision1()
}

[TestMethod]
[TestCategory("Revision 2"), TestCategory("ASCII")]
public void Mid0071Revision2()
{
string pack = @"01060071002 01E1021021031042017-12-01:20:12:4505Alarm Text ";
Expand All @@ -49,6 +52,7 @@ public void Mid0071Revision2()
}

[TestMethod]
[TestCategory("Revision 2"), TestCategory("ByteArray")]
public void Mid0071ByteRevision2()
{
string pack = @"01060071002 01E1021021031042017-12-01:20:12:4505Alarm Text ";
Expand Down
6 changes: 4 additions & 2 deletions src/MIDTesters.Core/Alarm/TestMid0072.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenProtocolInterpreter.Alarm;

namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0072 : DefaultMidTests<Mid0072>
{
[TestMethod]
[TestCategory("ASCII")]
public void Mid0072AllRevisions()
{
string pack = @"00200072002 ";
Expand All @@ -18,6 +19,7 @@ public void Mid0072AllRevisions()
}

[TestMethod]
[TestCategory("ByteArray")]
public void Mid0072ByteAllRevisions()
{
string pack = @"00200072002 ";
Expand Down
7 changes: 4 additions & 3 deletions src/MIDTesters.Core/Alarm/TestMid0073.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenProtocolInterpreter.Alarm;

namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0073 : DefaultMidTests<Mid0073>
{
[TestMethod]
[TestCategory("ASCII")]
public void Mid0073AllRevisions()
{
string pack = @"00200073002 ";
Expand All @@ -19,6 +19,7 @@ public void Mid0073AllRevisions()
}

[TestMethod]
[TestCategory("ByteArray")]
public void Mid0073ByteAllRevisions()
{
string pack = @"00200073002 ";
Expand Down
6 changes: 6 additions & 0 deletions src/MIDTesters.Core/Alarm/TestMid0074.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0074 : DefaultMidTests<Mid0074>
{
[TestMethod]
[TestCategory("Revision 1"), TestCategory("ASCII")]
public void Mid0074Revision1()
{
string pack = @"00240074001 E851";
Expand All @@ -18,6 +20,7 @@ public void Mid0074Revision1()
}

[TestMethod]
[TestCategory("Revision 1"), TestCategory("ByteArray")]
public void Mid0074ByteRevision1()
{
string pack = @"00240074001 E851";
Expand All @@ -28,7 +31,9 @@ public void Mid0074ByteRevision1()
Assert.AreEqual(4, mid.ErrorCode.Length);
AssertEqualPackages(bytes, mid);
}

[TestMethod]
[TestCategory("Revision 2"), TestCategory("ASCII")]
public void Mid0074Revision2()
{
string pack = @"00250074002 E8514";
Expand All @@ -40,6 +45,7 @@ public void Mid0074Revision2()
}

[TestMethod]
[TestCategory("Revision 2"), TestCategory("ByteArray")]
public void Mid0074ByteRevision2()
{
string pack = @"00250074002 E8514";
Expand Down
3 changes: 3 additions & 0 deletions src/MIDTesters.Core/Alarm/TestMid0075.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0075 : DefaultMidTests<Mid0075>
{
[TestMethod]
[TestCategory("ASCII")]
public void Mid0075AllRevisions()
{
string pack = @"00200075001 ";
Expand All @@ -17,6 +19,7 @@ public void Mid0075AllRevisions()
}

[TestMethod]
[TestCategory("ByteArray")]
public void Mid0075ByteAllRevisions()
{
string pack = @"00200075001 ";
Expand Down
7 changes: 7 additions & 0 deletions src/MIDTesters.Core/Alarm/TestMid0076.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0076 : DefaultMidTests<Mid0076>
{
[TestMethod]
[TestCategory("Revision 1"), TestCategory("ASCII")]
public void Mid0076Revision1()
{
string pack = @"00560076001 01102E851031041052017-01-25:10:20:20";
Expand All @@ -21,6 +23,7 @@ public void Mid0076Revision1()
}

[TestMethod]
[TestCategory("Revision 1"), TestCategory("ByteArray")]
public void Mid0076ByteRevision1()
{
string pack = @"00560076001 01102E851031041052017-01-25:10:20:20";
Expand All @@ -36,6 +39,7 @@ public void Mid0076ByteRevision1()
}

[TestMethod]
[TestCategory("Revision 2"), TestCategory("ASCII")]
public void Mid0076Revision2()
{
string pack = @"00570076002 01102 E851031041052017-01-25:10:20:20";
Expand All @@ -50,6 +54,7 @@ public void Mid0076Revision2()
}

[TestMethod]
[TestCategory("Revision 2"), TestCategory("ByteArray")]
public void Mid0076ByteRevision2()
{
string pack = @"00570076002 01102 E851031041052017-01-25:10:20:20";
Expand All @@ -65,6 +70,7 @@ public void Mid0076ByteRevision2()
}

[TestMethod]
[TestCategory("Revision 3"), TestCategory("ASCII")]
public void Mid0076Revision3()
{
string pack = @"00600076003 01102 E851031041052017-01-25:10:20:20061";
Expand All @@ -80,6 +86,7 @@ public void Mid0076Revision3()
}

[TestMethod]
[TestCategory("Revision 3"), TestCategory("ByteArray")]
public void Mid0076ByteRevision3()
{
string pack = @"00600076003 01102 E851031041052017-01-25:10:20:20061";
Expand Down
3 changes: 3 additions & 0 deletions src/MIDTesters.Core/Alarm/TestMid0077.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0077 : DefaultMidTests<Mid0077>
{
[TestMethod]
[TestCategory("ASCII")]
public void Mid0077AllRevisions()
{
string pack = @"00200077 ";
Expand All @@ -17,6 +19,7 @@ public void Mid0077AllRevisions()
}

[TestMethod]
[TestCategory("ByteArray")]
public void Mid0077ByteAllRevisions()
{
string pack = @"00200077 ";
Expand Down
7 changes: 4 additions & 3 deletions src/MIDTesters.Core/Alarm/TestMid0078.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenProtocolInterpreter.Alarm;

namespace MIDTesters.Alarm
{
[TestClass]
[TestCategory("Alarm")]
public class TestMid0078 : DefaultMidTests<Mid0078>
{
[TestMethod]
[TestCategory("ASCII")]
public void Mid0078AllRevisions()
{
string pack = @"00200078 ";
Expand All @@ -19,6 +19,7 @@ public void Mid0078AllRevisions()
}

[TestMethod]
[TestCategory("ByteArray")]
public void Mid0078ByteAllRevisions()
{
string pack = @"00200078 ";
Expand Down
3 changes: 3 additions & 0 deletions src/MIDTesters.Core/ApplicationController/TestMid0270.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
namespace MIDTesters.ApplicationController
{
[TestClass]
[TestCategory("ApplicationController")]
public class TestMid0270 : DefaultMidTests<Mid0270>
{
[TestMethod]
[TestCategory("Revision 1"), TestCategory("ASCII")]
public void Mid0270Revision1()
{
string package = "00200270001 ";
Expand All @@ -17,6 +19,7 @@ public void Mid0270Revision1()
}

[TestMethod]
[TestCategory("Revision 1"), TestCategory("ByteArray")]
public void Mid0270ByteRevision1()
{
string package = "00200270001 ";
Expand Down
7 changes: 4 additions & 3 deletions src/MIDTesters.Core/ApplicationSelector/TestMid0250.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenProtocolInterpreter.ApplicationSelector;

namespace MIDTesters.ApplicationSelector
{
[TestClass]
[TestCategory("ApplicationSelector")]
public class TestMid0250 : DefaultMidTests<Mid0250>
{
[TestMethod]
[TestCategory("Revision 1"), TestCategory("ASCII")]
public void Mid0250Revision1()
{
string package = "00200250 1 ";
Expand All @@ -20,6 +20,7 @@ public void Mid0250Revision1()
}

[TestMethod]
[TestCategory("Revision 1"), TestCategory("ByteArray")]
public void Mid0250ByteRevision1()
{
string package = "00200250 1 ";
Expand Down
Loading

0 comments on commit 9799caa

Please sign in to comment.