Ejemplo n.º 1
0
        public void It_should_have_Path_as_dot()
        {
            EditViewElement element = _node.Value as EditViewElement;

            Assert.NotNull(element.Properties);

            Assert.True(element.Properties.Count > 0);

            Assert.True(element.Properties.ContainsKey(BindingConstants.Attributes.Text));

            Assert.True(element.Properties[BindingConstants.Attributes.Text].TargetPath.Equals("."));
        }
Ejemplo n.º 2
0
        public void It_should_have_no_converter()
        {
            EditViewElement element = _node.Value as EditViewElement;

            Assert.NotNull(element.Properties);

            Assert.True(element.Properties.Count > 0);

            Assert.True(element.Properties.ContainsKey(BindingConstants.Attributes.Text));

            Assert.Null(element.Properties[BindingConstants.Attributes.Text].Converter);
        }
Ejemplo n.º 3
0
        public void It_should_not_have_Path_as_TestPath()
        {
            EditViewElement element = _node.Value as EditViewElement;

            Assert.NotNull(element.Properties);

            Assert.True(element.Properties.Count > 0);

            Assert.True(element.Properties.ContainsKey(BindingConstants.Attributes.Text));

            Assert.False(element.Properties[BindingConstants.Attributes.Text].SourcePath.Equals("TestPath"));
        }