Пример #1
0
        public void Convert_ValueIsNotNull_ReturnsValue(object value)
        {
            var testSubject = new NullableSelectedItemConverter();

            var result = testSubject.Convert(value, null, null, null);

            result.Should().Be(value);
        }
Пример #2
0
        public void Convert_ValueIsNull_ReturnsUnsetValue()
        {
            var testSubject = new NullableSelectedItemConverter();

            var result = testSubject.Convert(null, null, null, null);

            result.Should().Be(DependencyProperty.UnsetValue);
        }