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

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

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

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

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

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

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