public void ToInterop_NoValueSet_ShouldReturnEmptyArray()
        {
            // Arrange
            var parameters = new SapConnectionParameters();

            // Act
            RfcConnectionParameter[] interopParameters = parameters.ToInterop();

            // Assert
            interopParameters.Should().BeEmpty();
        }
        public void ToInterop_ShouldUseNameFromAttribute()
        {
            // Arrange
            var parameters = new SapConnectionParameters
            {
                RepositoryPassword = "******",
            };

            // Act
            RfcConnectionParameter[] interopParameters = parameters.ToInterop();

            // Assert
            interopParameters.First().Name.Should().Be("REPOSITORY_PASSWD");
        }
        public void ToInterop_ShouldMapNonNullValues()
        {
            // Arrange
            var parameters = new SapConnectionParameters
            {
                Name     = "SomeName",
                Language = "EN",
            };

            // Act
            RfcConnectionParameter[] interopParameters = parameters.ToInterop();

            // Assert
            interopParameters.Should().HaveCount(2);
            interopParameters.First().Should().BeEquivalentTo(new { Name = "NAME", Value = "SomeName" });
            interopParameters.Last().Should().BeEquivalentTo(new { Name = "LANG", Value = "EN" });
        }