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); + }); } }