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

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

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

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

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

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

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

                Assert.AreEqual("Field", layout.field.Text);
            }
Exemplo n.º 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);
            }
Exemplo n.º 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);
            }