Arc.Learning.Tests.ReflectionTests.Should_create_generic_type_from_types C# (CSharp) Method

Should_create_generic_type_from_types() private method

private Should_create_generic_type_from_types ( ) : void
return void
        public void Should_create_generic_type_from_types()
        {
            var validationType = typeof(DomainEntity);
            var type = typeof(IValidator<>);

            var genericType = type.MakeGenericType(validationType);

            Assert.That(genericType.FullName, Text.Contains("Arc.Infrastructure.Validation.IValidator`1"));
            Assert.That(genericType.FullName, Text.Contains("Arc.Learning.Tests.Fakes.Model.DomainEntity"));
        }