public void NullIfEmptyOrWhiteSpace_should_return_same_string_not_null(string input) { Assume.That(input, Is.Not.Null); var result = NullStringExtensions.NullIfEmptyOrWhiteSpace(input); Assert.That(result, Is.EqualTo(input)); }
public void NullIfEmptyOrWhiteSpace_should_return_same_string_if_filled_with_whitespaces(string input) { var result = NullStringExtensions.NullIfEmptyOrWhiteSpace(input); Assert.That(result, Is.Null); }
public void NullIfEmptyOrWhiteSpace_should_return_null_if_input_is_empty_string(string input) { var result = NullStringExtensions.NullIfEmptyOrWhiteSpace(input); Assert.That(result, Is.Null); }