Skip to content

Commit

Permalink
Refactor UnitTests (#2212)
Browse files Browse the repository at this point in the history
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
  • Loading branch information
utpilla and cijothomas authored Jul 29, 2021
1 parent 29a4a79 commit 4323c93
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
// </copyright>

using System.Diagnostics;
using OpenTelemetry.Exporter.Jaeger.Implementation;
using Xunit;

namespace OpenTelemetry.Exporter.Jaeger.Tests.Implementation
namespace OpenTelemetry.Exporter.Jaeger.Implementation.Tests
{
public class Int128Test
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

using OpenTelemetry.Exporter.Jaeger.Implementation;
using OpenTelemetry.Internal;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;
using Xunit;

namespace OpenTelemetry.Exporter.Jaeger.Tests.Implementation
namespace OpenTelemetry.Exporter.Jaeger.Implementation.Tests
{
public class JaegerActivityConversionTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
using System.Threading;
using System.Threading.Tasks;
using Moq;
using OpenTelemetry.Exporter.Jaeger.Implementation;
using Thrift.Transport;
using Xunit;

namespace OpenTelemetry.Exporter.Jaeger.Tests.Implementation
namespace OpenTelemetry.Exporter.Jaeger.Implementation.Tests
{
public class ThriftUdpClientTransportTests : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Exporter.Jaeger.Implementation;
using OpenTelemetry.Exporter.Jaeger.Tests.Implementation;
using OpenTelemetry.Exporter.Jaeger.Implementation.Tests;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;
using Thrift.Protocol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using System.Linq;
using System.Reflection;
using System.Threading;
using Google.Protobuf.Collections;
using Grpc.Core;
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation;
using OpenTelemetry.Resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using Xunit;
using static OpenTelemetry.Exporter.Zipkin.Implementation.ZipkinActivityConversionExtensions;

namespace OpenTelemetry.Exporter.Zipkin.Tests.Implementation
namespace OpenTelemetry.Exporter.Zipkin.Implementation.Tests
{
public class ZipkinActivityConversionExtensionsTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
// </copyright>

using System.Linq;
using OpenTelemetry.Exporter.Zipkin.Implementation;
using OpenTelemetry.Exporter.Zipkin.Tests;
using OpenTelemetry.Internal;
using OpenTelemetry.Trace;
using Xunit;

namespace OpenTelemetry.Exporter.Zipkin.Tests.Implementation
namespace OpenTelemetry.Exporter.Zipkin.Implementation.Tests
{
public class ZipkinActivityConversionTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
// </copyright>

using System.Collections.Generic;
using OpenTelemetry.Exporter.Zipkin.Implementation;
using OpenTelemetry.Exporter.Zipkin.Tests;
using OpenTelemetry.Trace;
using Xunit;

namespace OpenTelemetry.Exporter.Zipkin.Tests.Implementation
namespace OpenTelemetry.Exporter.Zipkin.Implementation.Tests
{
public class ZipkinActivityExporterRemoteEndpointTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
using Grpc.Net.Client;
using Moq;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Instrumentation.Grpc.Tests.Services;
using OpenTelemetry.Instrumentation.Grpc.Services.Tests;
using OpenTelemetry.Instrumentation.GrpcNetClient;
using OpenTelemetry.Trace;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using Grpc.Core;
using Microsoft.Extensions.Logging;

namespace OpenTelemetry.Instrumentation.Grpc.Tests.Services
namespace OpenTelemetry.Instrumentation.Grpc.Services.Tests
{
public class GreeterService : Greeter.GreeterBase
{
Expand Down
3 changes: 1 addition & 2 deletions test/OpenTelemetry.Tests/Internal/CircularBufferTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
// </copyright>

using System;
using OpenTelemetry.Internal;
using Xunit;

namespace OpenTelemetry.Tests.Internal
namespace OpenTelemetry.Internal.Tests
{
public class CircularBufferTest
{
Expand Down
3 changes: 2 additions & 1 deletion test/OpenTelemetry.Tests/Logs/LogRecordTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
using Microsoft.Extensions.Logging;
using OpenTelemetry.Exporter;
using OpenTelemetry.Logs;
using OpenTelemetry.Tests;
using OpenTelemetry.Trace;
using Xunit;

namespace OpenTelemetry.Tests.Logs
namespace OpenTelemetry.Logs.Tests
{
public sealed class LogRecordTest : IDisposable
{
Expand Down

0 comments on commit 4323c93

Please sign in to comment.