Skip to content

Commit

Permalink
Update client-structure-default.cs (#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgallan authored Oct 17, 2024
1 parent fb25b1b commit ab56c7d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/CadlRanchProjects.Tests/client-structure-default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
});
}
}

0 comments on commit ab56c7d

Please sign in to comment.