Example #1
0
            public void AllowNonBindableNullable(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control5;

                Assert.AreEqual(5, control.NullableIntProp);
            }
Example #2
0
            public void ConversionForNullable(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control1;

                Assert.AreEqual(2d, control.NullableDouble);
            }
Example #3
0
            public void NullableAttachedBPs(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control4;

                Assert.AreEqual(3, Bz24910Control.GetAttachedNullableInt(control));
            }
Example #4
0
            public void AllowNull(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control2;

                Assert.Null(control.NullableInt);
            }
Example #5
0
			public void AllowNonBindableNullable (bool useCompiledXaml)
			{
				var page = new Bz24910 (useCompiledXaml);
				var control = page.control5;

				Assert.AreEqual (5, control.NullableIntProp);
			}
Example #6
0
            public void AllowNullableDoubleProperties(bool useCompiledXaml)
            {
                var page    = new Bz24910(useCompiledXaml);
                var control = page.control0;

                Assert.AreEqual(2.2d, control.NullableDouble);
            }
Example #7
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);
			}
Example #8
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);
            }
Example #9
0
			public void NullableAttachedBPs (bool useCompiledXaml)
			{
				var page = new Bz24910 (useCompiledXaml);
				var control = page.control4;
				Assert.AreEqual (3, Bz24910Control.GetAttachedNullableInt (control));
			}
Example #10
0
			public void AllowNull (bool useCompiledXaml)
			{
				var page = new Bz24910 (useCompiledXaml);
				var control = page.control2;
				Assert.Null (control.NullableInt);
			}
Example #11
0
			public void ConversionForNullable (bool useCompiledXaml)
			{
				var page = new Bz24910 (useCompiledXaml);
				var control = page.control1;
				Assert.AreEqual (2d, control.NullableDouble);
			}
Example #12
0
			public void AllowNullableDoubleProperties (bool useCompiledXaml)
			{
				var page = new Bz24910 (useCompiledXaml);
				var control = page.control0;
				Assert.AreEqual (2.2d, control.NullableDouble);
			}