Skip to content

Commit

Permalink
moving from Functional to Manual Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Javad Rahnama committed Feb 4, 2020
1 parent c3a27a4 commit f39321c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@

using System.Collections.Generic;
using System.Diagnostics.Tracing;
using Microsoft.Data.SqlClient.ManualTesting.Tests;
using Xunit;

namespace Microsoft.Data.SqlClient.Tests
{
[SkipOnTargetFramework(TargetFrameworkMonikers.Netcoreapp,"Not Implemented")]
[SkipOnTargetFramework(TargetFrameworkMonikers.Netcoreapp, "Not Implemented")]
public class SqlClientEventSourceTest
{
[Fact]
[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup))]
public void IsTraceEnabled()
{
string connString = DataTestUtility.TCPConnectionString;
using (var listener = new SampleEventListener())
{
listener.EnableEvents(SqlClientEventSource.Log, EventLevel.Informational, SqlClientEventSource.Keywords.Trace);
using (SqlConnection connection = new SqlConnection("Data Source=tcp:localhost;Database=Northwind;Integrated Security=true;"))
using (SqlConnection connection = new SqlConnection(connString))
{
connection.Open();
using (SqlCommand command = new SqlCommand("SELECT * From [Customers]", connection))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<Compile Include="AlwaysEncrypted\TestTrustedMasterKeyPaths.cs" />
<Compile Include="DataCommon\AADUtility.cs" />
<Compile Include="DataCommon\CheckConnStrSetupFactAttribute.cs" />
<Compile Condition="'$(TargetGroup)'=='netfx'" Include="EventSource\SqlClientEventSourceTest.cs" />
<Compile Include="SQL\AdapterTest\AdapterTest.cs" />
<Compile Include="SQL\AsyncTest\BeginExecAsyncTest.cs" />
<Compile Include="SQL\AsyncTest\BeginExecReaderAsyncTest.cs" />
Expand Down

0 comments on commit f39321c

Please sign in to comment.