Esempio n. 1
0
            public void FieldColor(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual(Color.Fuchsia, layout.color.TextColor);
            }
Esempio n. 2
0
            public void StaticProperty(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

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

                Assert.AreEqual("Property", layout.memberisoptional.Text);
            }
Esempio n. 4
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);
            }
Esempio n. 5
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);
            }
Esempio n. 6
0
            public void FieldRef(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

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

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

                Assert.AreEqual("Field", layout.field.Text);
            }
Esempio n. 9
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);
            }
Esempio n. 10
0
            public void Constant(bool useCompiledXaml)
            {
                var layout = new XStatic(useCompiledXaml);

                Assert.AreEqual("Constant", layout.constant.Text);
            }