예제 #1
0
        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));
        }
예제 #2
0
        public void NullIfEmptyOrWhiteSpace_should_return_same_string_if_filled_with_whitespaces(string input)
        {
            var result = NullStringExtensions.NullIfEmptyOrWhiteSpace(input);

            Assert.That(result, Is.Null);
        }
예제 #3
0
        public void NullIfEmptyOrWhiteSpace_should_return_null_if_input_is_empty_string(string input)
        {
            var result = NullStringExtensions.NullIfEmptyOrWhiteSpace(input);

            Assert.That(result, Is.Null);
        }