Skip to content

Commit

Permalink
fix test case compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang committed Jan 9, 2025
1 parent ade80c5 commit 66c349d
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Client.Structure.Service;
using Client.Structure.Service.Default;
using Client.Structure.Service.Default.Models;
using Client.Structure.Service.Renamed.Operation;
using NUnit.Framework;

namespace TestProjects.CadlRanch.Tests.Http.Client.Structure.Default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

using System.Linq;
using System.Threading.Tasks;
using Client.Structure.Service;
using Client.Structure.Service.Multi.Client;
using Client.Structure.Service.Multi.Client.Models;
using NUnit.Framework;

namespace TestProjects.CadlRanch.Tests.Http.Client.Structure.MultiClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

using System.Linq;
using System.Threading.Tasks;
using Client.Structure.Service;
using Client.Structure.Service.Renamed.Operation;
using Client.Structure.Service.Renamed.Operation.Models;
using NUnit.Framework;

namespace TestProjects.CadlRanch.Tests.Http.Client.Structure.RenamedOperation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Client.Structure.Service.TwoOperationGroup;
using Client.Structure.Service.TwoOperationGroup.Models;
using NUnit.Framework;
using System.ClientModel;
using System.Linq;
using System.Threading.Tasks;
using Client.Structure.Service;
using Client.Structure.Service.TwoOperationGroup;
using NUnit.Framework;

namespace TestProjects.CadlRanch.Tests.Http.Client.Structure.TwoOperationGroup
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.ClientModel;
using System.IO;
using _Type.Model.Inheritance.SingleDiscriminator.Models;
using _Type.Model.Inheritance.SingleDiscriminator;
using Microsoft.Generator.CSharp.Tests.Common;
using NUnit.Framework;
using TestProjects.CadlRanch.Tests.Infrastructure;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.ClientModel;
using System.IO;
using _Type.Property.AdditionalProperties.Models;
using _Type.Property.AdditionalProperties;
using Microsoft.Generator.CSharp.Tests.Common;
using NUnit.Framework;
using TestProjects.CadlRanch.Tests.Infrastructure;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.ClientModel;
using System.IO;
using _Type.Property.AdditionalProperties.Models;
using _Type.Property.AdditionalProperties;
using Microsoft.Generator.CSharp.Tests.Common;
using NUnit.Framework;
using TestProjects.CadlRanch.Tests.Infrastructure;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.Threading.Tasks;
using _Type._Enum.Extensible;
using _Type._Enum.Extensible.Models;
using NUnit.Framework;

namespace TestProjects.CadlRanch.Tests.Http._Type._Enum.Extensible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.ClientModel;
using System.Threading.Tasks;
using _Type._Enum.Fixed;
using _Type._Enum.Fixed.Models;
using NUnit.Framework;

namespace TestProjects.CadlRanch.Tests.Http._Type._Enum.Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,36 @@
<Compile Include="../CadlRanch/**/*.cs" Exclude="../CadlRanch/**/Properties/**/*.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" />
<Compile Remove="../CadlRanch/**/ClientType.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/client/structure/default/src/Generated/Models/ClientType.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/ModelV1.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/added/v1/src/Generated/Models/ModelV1.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/ModelV1.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/ModelV1.Serialization.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/added/v1/src/Generated/Models/ModelV1.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/ModelV1.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/ModelV2.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/added/v2/src/Generated/Models/ModelV2.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/ModelV2.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/ModelV2.Serialization.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/added/v2/src/Generated/Models/ModelV2.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/ModelV2.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/ModelV3.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/ModelV3.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/ModelV3.Serialization.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/ModelV3.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/EnumV1.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/added/v1/src/Generated/Models/EnumV1.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/removed/v1/src/Generated/Models/EnumV1.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/EnumV2.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/added/v2/src/Generated/Models/EnumV2.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/removed/v2/src/Generated/Models/EnumV2.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/EnumV3.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/removed/v2/src/Generated/Models/EnumV3.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/TestModel.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/madeOptional/v1/src/Generated/Models/TestModel.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/typeChangedFrom/v1/src/Generated/Models/TestModel.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Remove="../CadlRanch/**/TestModel.Serialization.cs" /> <!-- Remove the duplicated class from multiple projects -->
<Compile Include="../CadlRanch/http/versioning/madeOptional/v1/src/Generated/Models/TestModel.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
<Compile Include="../CadlRanch/http/versioning/typeChangedFrom/v1/src/Generated/Models/TestModel.Serialization.cs" Link="Projects/%(RecursiveDir)/%(Filename)%(Extension)" /> <!-- Add one specific version back in -->
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 66c349d

Please sign in to comment.