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

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

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

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

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

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

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

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