mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-18 12:32:51 +00:00
Fix or ignore build warnings in tests
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<AnalysisLevel>latest-Recommended</AnalysisLevel>
|
<AnalysisLevel>latest-Recommended</AnalysisLevel>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
CA1859: Change type of field 'xxx' from interface to type for performance reasons
|
||||||
|
CA1852: Type 'ReadFromBuffer' can be sealed
|
||||||
|
-->
|
||||||
|
<NoWarn>$(NoWarn);CA1859;CA1852</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ internal class VariableNameParserTests
|
|||||||
public void Invalid(string? input)
|
public void Invalid(string? input)
|
||||||
{
|
{
|
||||||
var parser = new VariableNameParser();
|
var parser = new VariableNameParser();
|
||||||
Should.Throw<InvalidS7AddressException>(() => parser.Parse(input));
|
Should.Throw<InvalidS7AddressException>(() => parser.Parse(input!));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IEnumerable<TestCase> ValidTestCases()
|
public static IEnumerable<TestCase> ValidTestCases()
|
||||||
|
|||||||
Reference in New Issue
Block a user