Skip to content

Commit

Permalink
Merge pull request #1288 from zhenlan/port-test-fix
Browse files Browse the repository at this point in the history
Add conditional fact for the tests need root cert
  • Loading branch information
zhenlan authored Jun 15, 2016
2 parents 7f25f40 + 2aa2251 commit 7b3b3d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<Project>{9098B41C-9C2E-4FC6-B7D8-FC3411736A22}</Project>
<Name>ScenarioTests.Common</Name>
</ProjectReference>
<ProjectReference Include="$(WcfInfrastructureCommonProj)">
<Project>{AFD69665-89A3-42AE-A32E-AB2CBBE6EE7E}</Project>
<Name>Infrastructure.Common</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@

using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

using Infrastructure.Common;
using Xunit;

public static class Binding_Http_NetHttpsBindingTests
public class Binding_Http_NetHttpsBindingTests: ConditionalWcfTest
{
[Fact]
[ConditionalFact(nameof(Root_Certificate_Installed))]
[OuterLoop]
[ActiveIssue(1123, PlatformID.AnyUnix)]
public static void DefaultCtor_NetHttps_Echo_RoundTrips_String()
Expand Down Expand Up @@ -77,7 +75,7 @@ public static void TransportWithMessageCredential_NotSupported_NetHttps()
});
}

[Fact]
[ConditionalFact(nameof(Root_Certificate_Installed))]
[OuterLoop]
[ActiveIssue(1123, PlatformID.AnyUnix)]
public static void NonDefaultCtor_NetHttps_Echo_RoundTrips_String()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static void IDuplexSessionChannel_Async_Tcp_NetTcpBinding()
}
}

[Fact]
[ConditionalFact(nameof(Root_Certificate_Installed))]
[OuterLoop]
[ActiveIssue(1123, PlatformID.AnyUnix)]
public static void IRequestChannel_Https_NetHttpsBinding()
Expand Down

0 comments on commit 7b3b3d7

Please sign in to comment.