Пример #1
0
            public void AllowNonBindableNullable(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control5;

                Assert.AreEqual(5, control.NullableIntProp);
            }
Пример #2
0
            public void NullableAttachedBPs(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control4;

                Assert.AreEqual(3, Bz24910Control.GetAttachedNullableInt(control));
            }
Пример #3
0
            public void AllowNull(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control2;

                Assert.Null(control.NullableInt);
            }
Пример #4
0
            public void ConversionForNullable(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control1;

                Assert.AreEqual(2d, control.NullableDouble);
            }
Пример #5
0
            public void AllowNullableDoubleProperties(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control0;

                Assert.AreEqual(2.2d, control.NullableDouble);
            }
Пример #6
0
            public void AllowBindingToNullable(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control3;

                Assert.Null(control.NullableInt);

                page.BindingContext = 2;
                Assert.AreEqual(2, control.NullableInt);
            }