diff --git a/src/netstandard2.0/AnySpecification/Fixtures/DynamicHolder.cs b/src/netstandard2.0/AnySpecification/Fixtures/DynamicHolder.cs new file mode 100644 index 0000000..c6ce297 --- /dev/null +++ b/src/netstandard2.0/AnySpecification/Fixtures/DynamicHolder.cs @@ -0,0 +1,4 @@ +namespace AnySpecification.Fixtures; + +#pragma warning disable CS0612 +public record DynamicHolder(dynamic D); diff --git a/src/netstandard2.0/AnySpecification/RangeGeneratorSpecification.cs b/src/netstandard2.0/AnySpecification/RangeGeneratorSpecification.cs index c288d7e..c60e753 100644 --- a/src/netstandard2.0/AnySpecification/RangeGeneratorSpecification.cs +++ b/src/netstandard2.0/AnySpecification/RangeGeneratorSpecification.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using AnySpecification.Fixtures; using AutoFixture.Kernel; using FluentAssertions; using static TddXt.AnyGenerators.Root.InlineGenerators; @@ -186,6 +187,4 @@ public void ShouldAllowGeneratingDynamicObjects() Assert.That(dynamicHolder.D, Is.Not.Null); Assert.That(dynamicHolder.D, Is.InstanceOf()); } - - public record DynamicHolder(dynamic D); }