-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into checkAvailableTypeName
- Loading branch information
Showing
103 changed files
with
3,322 additions
and
159 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.chronus/changes/http-specs-fix-dotnet-compatibility-failure-2024-10-11-16-9-50.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
changeKind: fix | ||
packages: | ||
- "@typespec/http-specs" | ||
--- | ||
|
||
Fix dotnet compatibility failure in http-specs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
.../TestProjects/CadlRanch.Tests/Http/Serialization/EncodedName/Json/EncodedNameJsonTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Threading.Tasks; | ||
using NUnit.Framework; | ||
using Serialization.EncodedName.Json.Models; | ||
using Serialization.EncodedName.Json; | ||
|
||
namespace TestProjects.CadlRanch.Tests.Http.Serialization.EncodedName.Json | ||
{ | ||
public class EncodedNameJsonTests : CadlRanchTestBase | ||
{ | ||
[CadlRanchTest] | ||
public Task PropertySend() => Test(async (host) => | ||
{ | ||
var response = await new JsonClient(host, null).GetPropertyClient().SendAsync(new JsonEncodedNameModel(true)); | ||
Assert.AreEqual(204, response.GetRawResponse().Status); | ||
}); | ||
|
||
[CadlRanchTest] | ||
public Task PropertyGet() => Test(async (host) => | ||
{ | ||
var response = await new JsonClient(host, null).GetPropertyClient().GetAsync(); | ||
Assert.AreEqual(200, response.GetRawResponse().Status); | ||
Assert.IsTrue(response.Value.DefaultName); | ||
}); | ||
} | ||
} |
Oops, something went wrong.