public void WhenConvertingDisconnectedObjectToMetricChartPropertyControlViewModelThenSameObjectIsReturned()
        {
            DisconnectedItem disconnectedItem = new DisconnectedItem();

            object result = this.converter.Convert(disconnectedItem, typeof(MetricChartPropertyControlViewModel), null, new CultureInfo("en-us"));

            Assert.AreEqual(disconnectedItem, result, "The conversion result should be the converted disconnected item object");
        }
예제 #2
0
        public void WhenConvertingDisconnectedObjectThenSameObjectIsReturned()
        {
            var converter = new TablePropertyToTablePropertyControlViewModelConverter();

            DisconnectedItem disconnectedItem = new DisconnectedItem();

            object result = converter.Convert(disconnectedItem, typeof(TablePropertyControlViewModel <string>), null, new CultureInfo("en-us"));

            Assert.AreEqual(disconnectedItem, result, "The conversion result should be the converted disconnected item object");
        }