No tienes acceso a esta clase

¡Continúa aprendiendo! Únete y comienza a potenciar tu carrera

Atributos Theory e InlineData

9/19
Recursos

Aportes 3

Preguntas 1

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

o inicia sesión.

Mi test de IsPalindrome usando Theory e InLineData \[Theory] \[InlineData("oro",true)] \[InlineData("hello", false)] public void IsPalindromeTest(string word, bool expected) { var strOperations = new StringOperations(); var result = strOperations.IsPalindrome(word); if (expected) { Assert.True(result); } else { Assert.False(result); } }

Mi test de GetStringLength

        [Fact]
        public void GetStringLength()
        {
            var strOperations = new StringOperations();

            var result = strOperations.GetStringLength("rice");

            Assert.Equal(4, result);
        }