Skip to content

Commit

Permalink
fix csharp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Mar 8, 2024
1 parent 1503aaa commit 1d6181c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions tests/Generator/resource/csharp/csharp_complex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CommonType
/// <summary>
/// Represents an any type
/// </summary>
public class AnyType extends CommonType
public class AnyType : CommonType
{
[JsonPropertyName("type")]
public string Type { get; set; }
Expand All @@ -33,7 +33,7 @@ public class AnyType extends CommonType
/// <summary>
/// Represents an array type. An array type contains an ordered list of a specific type
/// </summary>
public class ArrayType extends CommonType
public class ArrayType : CommonType
{
[JsonPropertyName("type")]
public string Type { get; set; }
Expand All @@ -50,7 +50,7 @@ public class ArrayType extends CommonType
/// <summary>
/// Represents a scalar type
/// </summary>
public class ScalarType extends CommonType
public class ScalarType : CommonType
{
[JsonPropertyName("format")]
public string Format { get; set; }
Expand All @@ -65,7 +65,7 @@ public class ScalarType extends CommonType
/// <summary>
/// Represents a boolean type
/// </summary>
public class BooleanType extends ScalarType
public class BooleanType : ScalarType
{
[JsonPropertyName("type")]
public string Type { get; set; }
Expand Down Expand Up @@ -114,7 +114,7 @@ public class IntersectionType
/// <summary>
/// Represents a map type. A map type contains variable key value entries of a specific type
/// </summary>
public class MapType extends CommonType
public class MapType : CommonType
{
[JsonPropertyName("type")]
public string Type { get; set; }
Expand All @@ -131,7 +131,7 @@ public class MapType extends CommonType
/// <summary>
/// Represents a number type (contains also integer)
/// </summary>
public class NumberType extends ScalarType
public class NumberType : ScalarType
{
[JsonPropertyName("type")]
public string Type { get; set; }
Expand Down Expand Up @@ -166,7 +166,7 @@ public class ReferenceType
/// <summary>
/// Represents a string type
/// </summary>
public class StringType extends ScalarType
public class StringType : ScalarType
{
[JsonPropertyName("type")]
public string Type { get; set; }
Expand All @@ -184,7 +184,7 @@ public class StringType extends ScalarType
/// <summary>
/// Represents a struct type. A struct type contains a fix set of defined properties
/// </summary>
public class StructType extends CommonType
public class StructType : CommonType
{
[JsonPropertyName("$final")]
public bool Final { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion tests/Generator/resource/csharp/csharp_import.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class Import
}

using System.Text.Json.Serialization;
public class MyMap extends Student
public class MyMap : Student
{
}
2 changes: 1 addition & 1 deletion tests/Generator/resource/csharp/csharp_import_ns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class Import

using System.Text.Json.Serialization;
namespace Foo.Bar;
public class MyMap extends My.Import.Student
public class MyMap : My.Import.Student
{
}
2 changes: 1 addition & 1 deletion tests/Generator/resource/csharp/csharp_oop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class Human
}

using System.Text.Json.Serialization;
public class Student extends Human
public class Student : Human
{
[JsonPropertyName("matricleNumber")]
public string MatricleNumber { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions tests/Generator/resource/csharp/csharp_union.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ public class Creature
}

using System.Text.Json.Serialization;
public class Human extends Creature
public class Human : Creature
{
[JsonPropertyName("firstName")]
public string FirstName { get; set; }
}

using System.Text.Json.Serialization;
public class Animal extends Creature
public class Animal : Creature
{
[JsonPropertyName("nickname")]
public string Nickname { get; set; }
Expand Down

0 comments on commit 1d6181c

Please sign in to comment.