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

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

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

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

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

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

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

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