Skip to content

Commit

Permalink
Remove MixApiVersion-TypeSpec (#5098)
Browse files Browse the repository at this point in the history
* remove

* Update ConvenienceMethodTests.cs
  • Loading branch information
mcgallan authored Oct 12, 2024
1 parent b11bb94 commit 64982a0
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 2,290 deletions.
4 changes: 0 additions & 4 deletions src/AutoRest.CSharp/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,6 @@
"commandName": "Project",
"commandLineArgs": "--standalone $(SolutionDir)\\test\\TestProjects\\MgmtXmlDeserialization\\src\\Generated -n"
},
"MixAPIVersion-TypeSpec": {
"commandName": "Project",
"commandLineArgs": "--standalone $(SolutionDir)\\test\\TestProjects\\MixAPIVersion-TypeSpec\\src\\Generated -n"
},
"model-flattening": {
"commandName": "Project",
"commandLineArgs": "--standalone $(SolutionDir)\\test\\TestServerProjects\\model-flattening\\Generated"
Expand Down
14 changes: 0 additions & 14 deletions test/AutoRest.TestServer.Tests/ConvenienceMethodTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Azure.Core;
using ConvenienceInCadl;
using ConvenienceInCadl.Models;
using MixApiVersion;
using NUnit.Framework;

namespace AutoRest.TestServer.Tests
Expand Down Expand Up @@ -234,18 +233,5 @@ public void NoConvenienceOptionalBodyScenario()
var protocolInUpdate = typeof(ConvenienceInCadlClient).GetMethod("NoConvenienceOptionalBody");
Assert.AreEqual(true, protocolInUpdate.GetParameters().Last().IsOptional);
}

[Test]
public void SetKeepNonOverloadableProtocolSignature()
{
var getPetsClientMethod = typeof(MixApiVersionClient).GetMethod("GetPetsClient");
Assert.AreEqual(typeof(Pets), getPetsClientMethod.ReturnType);

var method = getPetsClientMethod.ReturnType.GetMethod("Delete");
Assert.AreEqual(true, method.GetParameters().Last().IsOptional);

method = getPetsClientMethod.ReturnType.GetMethod("Read");
Assert.AreEqual(false, method.GetParameters().Last().IsOptional);
}
}
}
11 changes: 0 additions & 11 deletions test/TestProjects/MixAPIVersion-TypeSpec/Configuration.json

This file was deleted.

100 changes: 0 additions & 100 deletions test/TestProjects/MixAPIVersion-TypeSpec/MixAPIVersion-TypeSpec.tsp

This file was deleted.

50 changes: 0 additions & 50 deletions test/TestProjects/MixAPIVersion-TypeSpec/MixAPIVersion.sln

This file was deleted.

This file was deleted.

Loading

0 comments on commit 64982a0

Please sign in to comment.