Exemple #1
0
        public void VerifyThatConvertBackWorksWithNullValue()
        {
            var converter = new ReactiveCategoryToObjectListConverter();
            var value     = converter.ConvertBack(null, null, null, null) as ReactiveList <Category>;

            Assert.AreEqual(0, value.Count);
        }
Exemple #2
0
        public void VerifyThatConvertBackWorksWithValue()
        {
            var converter = new ReactiveCategoryToObjectListConverter();
            var value     = converter.ConvertBack(new List <Category> {
                new Category {
                    ShortName = "1"
                }
            }, null, null, null) as ReactiveList <Category>;

            Assert.AreEqual(1, value.Count);
        }