From ad1f81902cb765ea243e5e5ef1d9a4d13e685095 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 21 Mar 2024 17:12:44 -0400 Subject: [PATCH] - fixes formatting Signed-off-by: Vincent Biret --- .../OpenApiSchemaExtensionsTests.cs | 78 ++++++++++++------- 1 file changed, 52 insertions(+), 26 deletions(-) diff --git a/tests/Kiota.Builder.Tests/Extensions/OpenApiSchemaExtensionsTests.cs b/tests/Kiota.Builder.Tests/Extensions/OpenApiSchemaExtensionsTests.cs index 41732417ba..9077ecbe49 100644 --- a/tests/Kiota.Builder.Tests/Extensions/OpenApiSchemaExtensionsTests.cs +++ b/tests/Kiota.Builder.Tests/Extensions/OpenApiSchemaExtensionsTests.cs @@ -89,10 +89,12 @@ public void GetSchemaNameAllOfTitleEmpty() var schema = new OpenApiSchema { AllOf = [ - new() { + new() + { Title = "microsoft.graph.entity" }, - new() { + new() + { Title = "microsoft.graph.user" } ] @@ -107,13 +109,17 @@ public void GetSchemaNameAllOfReference() var schema = new OpenApiSchema { AllOf = [ - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.entity" } }, - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.user" } } @@ -130,12 +136,15 @@ public void GetSchemaNameAllOfNestedTitleEmpty() var schema = new OpenApiSchema { AllOf = [ - new() { + new() + { AllOf = [ - new() { + new() + { Title = "microsoft.graph.entity" }, - new() { + new() + { Title = "microsoft.graph.user" } ] @@ -152,15 +161,20 @@ public void GetSchemaNameAllOfNestedReference() var schema = new OpenApiSchema { AllOf = [ - new() { + new() + { AllOf = [ - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.entity" } }, - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.user" } } @@ -179,10 +193,12 @@ public void GetSchemaNameAnyOfTitleEmpty() var schema = new OpenApiSchema { AnyOf = [ - new() { + new() + { Title = "microsoft.graph.entity" }, - new() { + new() + { Title = "microsoft.graph.user" } ] @@ -197,13 +213,17 @@ public void GetSchemaNameAnyOfReference() var schema = new OpenApiSchema { AnyOf = [ - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.entity" } }, - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.user" } } @@ -220,10 +240,12 @@ public void GetSchemaNameOneOfTitleEmpty() var schema = new OpenApiSchema { OneOf = [ - new() { + new() + { Title = "microsoft.graph.entity" }, - new() { + new() + { Title = "microsoft.graph.user" } ] @@ -238,13 +260,17 @@ public void GetSchemaNameOneOfReference() var schema = new OpenApiSchema { OneOf = [ - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.entity" } }, - new() { - Reference = new() { + new() + { + Reference = new() + { Id = "microsoft.graph.user" } }