Convert() public méthode

public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
Résultat object
        public void WhenConvertCalledWithFalseThenWhenFalseReturned()
        {
            // Arrange
            var expected = new object();

            var value = false;

            var target = new BooleanToKnownValueConverter();
            target.WhenFalse = expected;

            // Act
            var actual = target.Convert(value, typeof(object), null, CultureInfo.InvariantCulture);

            // Assert
            Assert.AreSame(expected, actual);
        }