public void FieldColor(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual(Colors.Fuchsia, layout.color.TextColor); }
public void Constant(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual("Constant", layout.constant.Text); }
public void StaticProperty(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual("Property", layout.staticproperty.Text); }
public void MemberOptional(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual("Property", layout.memberisoptional.Text); }
// 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); }
// 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); }
public void FieldRef(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual("ic_close.png", layout.field2.Text); }
public void Enum(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual(ScrollOrientation.Both, layout.enuM.Orientation); }
public void Field(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); Assert.AreEqual("Field", layout.field.Text); }
//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); }
//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); }