From ab56c7d7cf3ac1b60bab56523e653f929e34e757 Mon Sep 17 00:00:00 2001 From: mcgallan <88413158+mcgallan@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:10:07 +0800 Subject: [PATCH] Update client-structure-default.cs (#5115) --- .../client-structure-default.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/CadlRanchProjects.Tests/client-structure-default.cs b/test/CadlRanchProjects.Tests/client-structure-default.cs index 515295dc11f..8c159518aff 100644 --- a/test/CadlRanchProjects.Tests/client-structure-default.cs +++ b/test/CadlRanchProjects.Tests/client-structure-default.cs @@ -14,6 +14,10 @@ public class ClientStructureDefaultTests : CadlRanchTestBase [TestCase(typeof(ServiceClient), new string[] { "One", "Two" })] [TestCase(typeof(Foo), new string[] { "Three", "Four" })] [TestCase(typeof(Bar), new string[] { "Five", "Six" })] + [TestCase(typeof(BazFoo), new string[] {"Seven"})] + [TestCase(typeof(Qux), new string[] {"Eight"})] + [TestCase(typeof(QuxBar), new string[] {"Nine"})] + public void Client_Structure_default_methods(Type client, string[] methodNames) { var methods = client.GetMethods(); @@ -62,5 +66,26 @@ public Task Client_Structure_default_Six() => Test(async (host) => Response response = await new ServiceClient(host, ClientType.Default).GetBarClient().SixAsync(); Assert.AreEqual(204, response.Status); }); + + [Test] + public Task Client_Structure_default_Seven() => Test(async (host) => + { + Response response = await new ServiceClient(host, ClientType.Default).GetBazClient().GetBazFooClient().SevenAsync(); + Assert.AreEqual(204, response.Status); + }); + + [Test] + public Task Client_Structure_default_Eight() => Test(async (host) => + { + Response response = await new ServiceClient(host, ClientType.Default).GetQuxClient().EightAsync(); + Assert.AreEqual(204, response.Status); + }); + + [Test] + public Task Client_Structure_default_Nine() => Test(async (host) => + { + Response response = await new ServiceClient(host, ClientType.Default).GetQuxClient().GetQuxBarClient().NineAsync(); + Assert.AreEqual(204, response.Status); + }); } }