Skip to content

Commit b3933d4

Browse files
committed
Fix PR review comments
- relative path instead of absolute + all verified txt files - remove net462 preprocessor symbols from test
1 parent ef5891d commit b3933d4

File tree

45 files changed

+21406
-21403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+21406
-21403
lines changed

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace NHapi.NUnit.SourceGeneration.Generators
22
{
33
using System.Collections.Concurrent;
44
using System.Collections.Generic;
5+
using System.IO;
56
using System.Text;
67
using System.Threading.Tasks;
78

@@ -35,6 +36,7 @@ public async Task BuildBaseDataTypes_GeneratesBaseDataTypes(string version)
3536

3637
FileAbstraction.UsingImplementation((filePath, bytes) =>
3738
{
39+
filePath = Path.GetRelativePath(Directory.GetCurrentDirectory(), filePath);
3840
results.TryAdd(filePath, Encoding.UTF8.GetString(bytes));
3941
});
4042

tests/NHapi.NUnit.SourceGeneration/Generators/DataTypeGeneratorTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public async Task MakeAll_GeneratesAllDataTypes(string version)
4848

4949
FileAbstraction.UsingImplementation((filePath, bytes) =>
5050
{
51+
filePath = Path.GetRelativePath(Directory.GetCurrentDirectory(), filePath);
5152
results.TryAdd(filePath, Encoding.UTF8.GetString(bytes));
5253
});
5354

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_21.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V21\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V21\EventMapping\EventMap.properties:
33
#event -> structure map for 2.1
44
#note: no mappings are defined for 2.1 and 2.2
55

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_22.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V22\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V22\EventMapping\EventMap.properties:
33
#event -> structure map for 2.2
44
#note: no mappings are defined for 2.1 and 2.2
55

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_23.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V23\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V23\EventMapping\EventMap.properties:
33
#event -> structure map for 2.3
44
ADT_A01 ADT_A01
55
ADT_A02 ADT_A02

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_231.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V231\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V231\EventMapping\EventMap.properties:
33
#event -> structure map for 2.3.1
44
ADT_A01 ADT_A01
55
ADT_A02 ADT_A02

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_24.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V24\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V24\EventMapping\EventMap.properties:
33
#event -> structure map for 2.4
44
ADT_A01 ADT_A01
55
ADT_A02 ADT_A02

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_25.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V25\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V25\EventMapping\EventMap.properties:
33
#event -> structure map for 2.5
44
ADT_A01 ADT_A01
55
ADT_A02 ADT_A02

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_251.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V251\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V251\EventMapping\EventMap.properties:
33
#event -> structure map for 2.5.1
44
ADT_A01 ADT_A01
55
ADT_A02 ADT_A02

tests/NHapi.NUnit.SourceGeneration/Generators/EventMappingGeneratorTests.MakeAll_GeneratesAllEventMaps_26.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
C:\DEV\nHapiNet\nHapi\tests\NHapi.NUnit.SourceGeneration\bin\Debug\net8.0\basepath\NHapi.Model.V26\EventMapping\EventMap.properties:
2+
basepath\NHapi.Model.V26\EventMapping\EventMap.properties:
33
#event -> structure map for 2.6
44
ADT_A01 ADT_A01
55
ADT_A02 ADT_A02

0 commit comments

Comments
 (0)