2f8f0d0f6f
* add tests for receive operation * clean up some items and tests * First initialization changes for SDK 3.2 * Update to SDK 3.2 * merge fixes * fmt * ifc changes * fix tests and remove fakes again * fmt * remove extra tests from local sln * update locks for 3.2 * fix mismerge --------- Co-authored-by: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com>
17 lines
428 B
C#
17 lines
428 B
C#
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
|
|
namespace Speckle.Connectors.Common.Tests.Logging;
|
|
|
|
public class ActivityScopeTests
|
|
{
|
|
[Test]
|
|
public async Task TestAsyncLocal()
|
|
{
|
|
Connectors.Logging.ActivityScope.SetTag("test", "me");
|
|
await Task.Delay(10);
|
|
Connectors.Logging.ActivityScope.Tags.ContainsKey("test").Should().BeTrue();
|
|
Connectors.Logging.ActivityScope.Tags["test"].Should().Be("me");
|
|
}
|
|
}
|