public void WhenIsSnakeUpperCase_ThenReturnSameString() { var sut = "SNAKE_UPPER_CASE"; var result = CaseConverter.ToSnakeUpperCase(sut, CaseType.SnakeUpperCase); Assert.That(result, Is.EqualTo(sut)); }
public void WhenIsSnakeCase_ThenReturnString(string sut, string expected) { var result = CaseConverter.ToSnakeUpperCase(sut, CaseType.SnakeCase); Assert.That(result, Is.EqualTo(expected)); }
public void WhenIsNotCaseSpecified_ThenThrowException(string value) { Assert.Throws <ArgumentException>(() => CaseConverter.ToSnakeUpperCase(value, CaseType.SnakeUpperCase)); }