Exemple #1
0
            public void FieldColor(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual(Colors.Fuchsia, layout.color.TextColor);
            }
Exemple #2
0
            public void Constant(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("Constant", layout.constant.Text);
            }
Exemple #3
0
            public void StaticProperty(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("Property", layout.staticproperty.Text);
            }
Exemple #4
0
            public void MemberOptional(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("Property", layout.memberisoptional.Text);
            }
Exemple #5
0
            // https://bugzilla.xamarin.com/show_bug.cgi?id=48242
            public void xStaticAndImplicitOperators(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("ic_close.png", (layout.ToolbarItems[0].IconImageSource as FileImageSource).File);
            }
Exemple #6
0
            // https://bugzilla.xamarin.com/show_bug.cgi?id=55096
            public void xStaticAndNestedClasses(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual(MockxStatic.Nested.Foo, layout.nestedField.Text);
            }
Exemple #7
0
            public void FieldRef(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("ic_close.png", layout.field2.Text);
            }
Exemple #8
0
            public void Enum(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual(ScrollOrientation.Both, layout.enuM.Orientation);
            }
Exemple #9
0
            public void Field(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("Field", layout.field.Text);
            }
Exemple #10
0
            //https://bugzilla.xamarin.com/show_bug.cgi?id=49228
            public void ConstantInARemoteAssembly(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("CompatibilityGalleryControls", layout.remoteConstant.Text);
            }
Exemple #11
0
            //https://bugzilla.xamarin.com/show_bug.cgi?id=49228
            public void ConstantInARemoteAssembly(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("XamarinFormsControls", layout.remoteConstant.Text);
            }