Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsoft committed Oct 7, 2022
1 parent e838784 commit 81fc281
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Metar.Decoder/Metar.Decoder.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<NoWarn>$(NoWarn);CS1591;SYSLIB0001;SYSLIB0002;SYSLIB0003</NoWarn>
<PackageProjectUrl>https://github.com/afonsoft/metar-decoder</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
Expand Down
2 changes: 1 addition & 1 deletion src/Metar.Decoder/MetarDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static DecodedMetar ParseWithMode(string rawMetar, bool isStrict = false)
}

// hook for report status decoder, abort if nil, but decoded metar is valid though
if (chunkDecoder is ReportStatusChunkDecoder && (decodedMetar.Status == "NIL" || string.IsNullOrEmpty(decodedMetar.Status)))
if (chunkDecoder is ReportStatusChunkDecoder && (decodedMetar.Status == "NIL"))
{
break;
}
Expand Down
19 changes: 18 additions & 1 deletion tests/Metar.Decoder.Tests/Metar.Decoder.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,31 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>

<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GenerateAssemblyTitleAttribute>true</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>true</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>true</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>true</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>true</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>true</GenerateAssemblyCopyrightAttribute>
<IsPackable>false</IsPackable>
<LangVersion>9.0</LangVersion>
<RootNamespace>Metar.Decoder.Tests</RootNamespace>
<AssemblyName>Metar.Decoder.Tests</AssemblyName>
<Authors>Afonso Dutra Nogueira Filho</Authors>
<Copyright>AFONSOFT© 2022</Copyright>
<Company>Afonsoft</Company>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />

<PackageReference Include="MSTest.TestAdapter" Version="2.1.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.1.0" />

<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 81fc281

Please sign in to comment.