Exemple #1
0
            public void WhenIsSnakeUpperCase_ThenReturnSameString()
            {
                var sut = "SNAKE_UPPER_CASE";

                var result = CaseConverter.ToSnakeUpperCase(sut, CaseType.SnakeUpperCase);

                Assert.That(result, Is.EqualTo(sut));
            }
Exemple #2
0
            public void WhenIsSnakeCase_ThenReturnString(string sut, string expected)
            {
                var result = CaseConverter.ToSnakeUpperCase(sut, CaseType.SnakeCase);

                Assert.That(result, Is.EqualTo(expected));
            }
Exemple #3
0
 public void WhenIsNotCaseSpecified_ThenThrowException(string value)
 {
     Assert.Throws <ArgumentException>(() => CaseConverter.ToSnakeUpperCase(value, CaseType.SnakeUpperCase));
 }