-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
committing from Mac to work in Windows
- Loading branch information
1 parent
03a47fa
commit d3ba5c9
Showing
27 changed files
with
420 additions
and
493 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...stem.Private.ServiceModel/tests/Scenarios/Binding/UDS/Binding.UDS.IntegrationTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>$(ScenarioTestTargetFrameworks)</TargetFrameworks> | ||
<CLSCompliant>false</CLSCompliant> | ||
<IsTestProject>true</IsTestProject> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\..\..\System.ServiceModel.Primitives\src\System.ServiceModel.Primitives.csproj" /> | ||
<ProjectReference Include="..\..\..\..\..\System.ServiceModel.NetTcp\src\System.ServiceModel.NetTcp.csproj" /> | ||
<ProjectReference Include='$(WcfScenarioTestCommonProj)' /> | ||
<ProjectReference Include="$(WcfInfrastructureCommonProj)" /> | ||
<PackageReference Include="CoreWCF.UnixDomainSocket" Version="1.5.0-preview1" /> | ||
</ItemGroup> | ||
</Project> |
46 changes: 46 additions & 0 deletions
46
src/System.Private.ServiceModel/tests/Scenarios/Binding/UDS/UDSBindingTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.ServiceModel; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Infrastructure.Common; | ||
using Xunit; | ||
|
||
public partial class Binding_UDSBindingTests : ConditionalWcfTest | ||
{ | ||
// Simple echo of a string using NetTcpBinding on both client and server with SecurityMode=None | ||
[WcfFact] | ||
[OuterLoop] | ||
public static void SecurityModeNone_Echo_RoundTrips_String() | ||
{ | ||
string testString = "Hello"; | ||
ChannelFactory<IWcfService> factory = null; | ||
IWcfService serviceProxy = null; | ||
|
||
try | ||
{ | ||
// *** SETUP *** \\ | ||
UnixDomainSocketBinding binding = new UnixDomainSocketBinding(SecurityMode.None); | ||
factory = new ChannelFactory<IWcfService>(binding, new EndpointAddress(Endpoints.Tcp_NoSecurity_Address)); | ||
serviceProxy = factory.CreateChannel(); | ||
|
||
// *** EXECUTE *** \\ | ||
string result = serviceProxy.Echo(testString); | ||
|
||
// *** VALIDATE *** \\ | ||
Assert.Equal(testString, result); | ||
|
||
// *** CLEANUP *** \\ | ||
((ICommunicationObject)serviceProxy).Close(); | ||
factory.Close(); | ||
} | ||
finally | ||
{ | ||
// *** ENSURE CLEANUP *** \\ | ||
ScenarioTestHelpers.CloseCommunicationObjects((ICommunicationObject)serviceProxy, factory); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.