public void WhenIsSnakeCase_ThenReturnSameString() { var sut = "snake_case"; var result = CaseConverter.ToSnakeCase(sut, CaseType.SnakeCase); Assert.That(result, Is.EqualTo(sut)); }
public void WhenIsNotCaseSpecified_ThenThrowException(string value) { Assert.Throws <ArgumentException>(() => CaseConverter.ToSnakeCase(value, CaseType.SnakeCase)); }
public void WhenIsSnakeUpperCase_ThenReturnString(string sut, string expected) { var result = CaseConverter.ToSnakeCase(sut, CaseType.SnakeUpperCase); Assert.That(result, Is.EqualTo(expected)); }