Let non-required, nullable properties of Record classes be C#-optiona… #1665
Annotations
5 errors and 10 warnings
Run: Compile, Test, Pack
[xUnit.net 00:00:00.97] NJsonSchema.CodeGeneration.CSharp.Tests.GeneralGeneratorTests.When_native_record_no_setter_in_class_and_constructor_provided [FAIL]
|
Run: Compile, Test, Pack
[xUnit.net 00:00:01.30] NJsonSchema.CodeGeneration.CSharp.Tests.GeneralGeneratorTests.When_record_no_setter_in_class_and_constructor_provided [FAIL]
|
Run: Compile, Test, Pack
[xUnit.net 00:00:01.32] NJsonSchema.CodeGeneration.CSharp.Tests.GeneralGeneratorTests.When_record_has_inheritance [FAIL]
|
Run: Compile, Test, Pack
Target "Test" has thrown an exception
|
Run: Compile, Test, Pack
Process completed with exit code 255.
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/StructTests.cs(34,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/Generation/RecordTests.cs(23,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.NewtonsoftJson.Tests/NJsonSchema.NewtonsoftJson.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Converters/JsonExceptionConverterTests.cs(98,18): warning xUnit1031: Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Conversion/TypeToSchemaTests.cs(190,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Validation/ValueTypeValidationTests.cs(304,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Validation/ValueTypeValidationTests.cs(323,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Generation/SchemaGenerationTests.cs(125,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Generation/RecordTests.cs(24,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Generation/SampleJsonDataGeneratorTests.cs(185,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
Run: Compile, Test, Pack
/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/Generation/SchemaGenerationTests.cs(174,13): warning xUnit2013: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) [/home/runner/work/NJsonSchema/NJsonSchema/src/NJsonSchema.Tests/NJsonSchema.Tests.csproj::TargetFramework=net462]
|
The logs for this run have expired and are no longer available.
Loading