Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
totpero committed Feb 29, 2024
1 parent 575ff24 commit db5d628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DeviceDetector.NET.Tests/DeviceDetectorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void TestParse(string fileNme)
{
//DeviceDetectorSettings.RegexesDirectory = @"D:\WorkSpaces\GitHubVisualStudio\DeviceDetector.Net\src\DeviceDetector.NET\";
var parser = new YamlParser<List<DeviceDetectorFixture>>();
var fixtureData = parser.ParseFile($"{Utils.CurrentDirectory()}\\fixtures\\{fileNme}.yml");
var fixtureData = parser.ParseFile($@"{Utils.CurrentDirectory()}\fixtures\{fileNme}.yml");
DeviceDetector.SetVersionTruncation(VersionTruncation.VERSION_TRUNCATION_NONE);

Parallel.ForEach(fixtureData, expected =>
Expand Down
2 changes: 1 addition & 1 deletion DeviceDetector.NET/Yaml/YamlParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private T ParseStreamReader(StreamReader streamReader)
while (parser.TryConsume<DocumentStart>(out _))
// Deserialize the document
{
var type = typeof(T);
//var type = typeof(T);
return deserializer.Deserialize<T>(parser);
}

Expand Down

0 comments on commit db5d628

Please sign in to comment.