public async Task NameReturnsConstraintName()
        {
            var node = await TestNode
                       .FindNode <TypeParameterConstraintClauseSyntax>(TypeDefinitionCode.ClassWithGenericConstraints)
                       .ConfigureAwait(false);

            var sut = new ConstraintListDefinition(node);

            sut.Name.Should().Be("T");
        }
        public async Task ConstrainsReturnsDefinedGenericTypeConstraints()
        {
            var node = await TestNode
                       .FindNode <TypeParameterConstraintClauseSyntax>(TypeDefinitionCode.ClassWithGenericConstraints)
                       .ConfigureAwait(false);

            var sut = new ConstraintListDefinition(node);

            sut.Name.Should().Be("T");
            sut.Constraints.Should().HaveCount(2);
            sut.Constraints.First().Should().Be("Stream");
            sut.Constraints.Skip(1).First().Should().Be("new()");
        }