--- /dev/null
+//------------------------------------------------------------------------------\r
+// <auto-generated>\r
+// This code was generated by a tool.\r
+// Runtime Version:4.0.30319.42000\r
+//\r
+// Changes to this file may cause incorrect behavior and will be lost if\r
+// the code is regenerated.\r
+// </auto-generated>\r
+//------------------------------------------------------------------------------\r
+\r
+namespace Tizen.NUI.Components.Tests.Properties {\r
+ using System;\r
+\r
+\r
+ /// <summary>\r
+ /// A strongly-typed resource class, for looking up localized strings, etc.\r
+ /// </summary>\r
+ // This class was auto-generated by the StronglyTypedResourceBuilder\r
+ // class via a tool like ResGen or Visual Studio.\r
+ // To add or remove a member, edit your .ResX file then rerun ResGen\r
+ // with the /str option, or rebuild your VS project.\r
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]\r
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\r
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]\r
+ internal class Resources {\r
+\r
+ private static global::System.Resources.ResourceManager resourceMan;\r
+\r
+ private static global::System.Globalization.CultureInfo resourceCulture;\r
+\r
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]\r
+ internal Resources() {\r
+ }\r
+\r
+ /// <summary>\r
+ /// Returns the cached ResourceManager instance used by this class.\r
+ /// </summary>\r
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]\r
+ internal static global::System.Resources.ResourceManager ResourceManager {\r
+ get {\r
+ if (object.ReferenceEquals(resourceMan, null)) {\r
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tizen.NUI.Components.Tests.Properties.Resources", typeof(Resources).Assembly);\r
+ resourceMan = temp;\r
+ }\r
+ return resourceMan;\r
+ }\r
+ }\r
+\r
+ /// <summary>\r
+ /// Overrides the current thread's CurrentUICulture property for all\r
+ /// resource lookups using this strongly typed resource class.\r
+ /// </summary>\r
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]\r
+ internal static global::System.Globalization.CultureInfo Culture {\r
+ get {\r
+ return resourceCulture;\r
+ }\r
+ set {\r
+ resourceCulture = value;\r
+ }\r
+ }\r
+ }\r
+}\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<root>\r
+ <!--\r
+ Microsoft ResX Schema\r
+\r
+ Version 2.0\r
+\r
+ The primary goals of this format is to allow a simple XML format\r
+ that is mostly human readable. The generation and parsing of the\r
+ various data types are done through the TypeConverter classes\r
+ associated with the data types.\r
+\r
+ Example:\r
+\r
+ ... ado.net/XML headers & schema ...\r
+ <resheader name="resmimetype">text/microsoft-resx</resheader>\r
+ <resheader name="version">2.0</resheader>\r
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\r
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\r
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\r
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\r
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\r
+ <value>[base64 mime encoded serialized .NET Framework object]</value>\r
+ </data>\r
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\r
+ <comment>This is a comment</comment>\r
+ </data>\r
+\r
+ There are any number of "resheader" rows that contain simple\r
+ name/value pairs.\r
+\r
+ Each data row contains a name, and value. The row also contains a\r
+ type or mimetype. Type corresponds to a .NET class that support\r
+ text/value conversion through the TypeConverter architecture.\r
+ Classes that don't support this are serialized and stored with the\r
+ mimetype set.\r
+\r
+ The mimetype is used for serialized objects, and tells the\r
+ ResXResourceReader how to depersist the object. This is currently not\r
+ extensible. For a given mimetype the value must be set accordingly:\r
+\r
+ Note - application/x-microsoft.net.object.binary.base64 is the format\r
+ that the ResXResourceWriter will generate, however the reader can\r
+ read any of the formats listed below.\r
+\r
+ mimetype: application/x-microsoft.net.object.binary.base64\r
+ value : The object must be serialized with\r
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\r
+ : and then encoded with base64 encoding.\r
+\r
+ mimetype: application/x-microsoft.net.object.soap.base64\r
+ value : The object must be serialized with\r
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\r
+ : and then encoded with base64 encoding.\r
+\r
+ mimetype: application/x-microsoft.net.object.bytearray.base64\r
+ value : The object must be serialized into a byte array\r
+ : using a System.ComponentModel.TypeConverter\r
+ : and then encoded with base64 encoding.\r
+ -->\r
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">\r
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />\r
+ <xsd:element name="root" msdata:IsDataSet="true">\r
+ <xsd:complexType>\r
+ <xsd:choice maxOccurs="unbounded">\r
+ <xsd:element name="metadata">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" use="required" type="xsd:string" />\r
+ <xsd:attribute name="type" type="xsd:string" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="assembly">\r
+ <xsd:complexType>\r
+ <xsd:attribute name="alias" type="xsd:string" />\r
+ <xsd:attribute name="name" type="xsd:string" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="data">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />\r
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />\r
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />\r
+ <xsd:attribute ref="xml:space" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ <xsd:element name="resheader">\r
+ <xsd:complexType>\r
+ <xsd:sequence>\r
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+ </xsd:sequence>\r
+ <xsd:attribute name="name" type="xsd:string" use="required" />\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:choice>\r
+ </xsd:complexType>\r
+ </xsd:element>\r
+ </xsd:schema>\r
+ <resheader name="resmimetype">\r
+ <value>text/microsoft-resx</value>\r
+ </resheader>\r
+ <resheader name="version">\r
+ <value>2.0</value>\r
+ </resheader>\r
+ <resheader name="reader">\r
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <resheader name="writer">\r
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+ </resheader>\r
+ <data name="String1" xml:space="preserve">\r
+ <value />\r
+ <comment>test</comment>\r
+ </data>\r
+</root>
\ No newline at end of file
using System.Threading.Tasks;
using Tizen.NUI.Components.Test;
using Tizen.NUI.BaseComponents;
+using global::System.Resources;
namespace Tizen.NUI.Components.Tests
{
Assert.Fail("Should throw the Exception: There is no style of defaultButtonX !");
}
catch(InvalidOperationException e)
- {\r
+ {
Assert.Pass("InvalidOperationException: passed!");
}
}
public void TranslatableTextSelector_SET_GET_VALUE()
{
/* TEST CODE */
+ ResourceManager testRm = new ResourceManager("Tizen.NUI.Components.Tests.Properties.Resources", typeof(ButtonTests).Assembly);
+ NUIApplication.MultilingualResourceManager = testRm;
+
var button = new Components.Button();
Assert.IsNotNull(button, "Should be not null");
Assert.IsInstanceOf<Components.Button>(button, "Should be equal!");
Assert.Fail("Should throw the NullReferenceException!");
}
catch (NullReferenceException e)
- {\r
+ {
Assert.Pass("NullReferenceException: passed!");
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {\r
+ {
Assert.Pass("NullReferenceException: passed!");
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {\r
+ {
Assert.Pass("NullReferenceException: passed!");
}
}
Assert.Fail("Should throw the NullReferenceException!");
}
catch(NullReferenceException e)
- {\r
+ {
Assert.Pass("NullReferenceException: passed!");
}
}
{
Assert.Fail("Caught Exception" + e.ToString());
}
- }\r
-\r
+ }
+
[Test]
[Category("P1")]
[Description("Test Button's icon part. Check whether null or not")]
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
Assert.Fail("Caught Exception" + e.ToString());
}
- }\r
-\r
+ }
+
[Test]
[Category("P1")]
[Description("Test Button's overlay image part. Check whether null or not")]
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
Assert.Fail("Caught Exception" + e.ToString());
}
- }\r
-\r
+ }
+
[Test]
[Category("P1")]
[Description("Test Button's text part. Check whether null or not")]
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
Assert.Fail("Caught Exception" + e.ToString());
}
- }\r
-\r
+ }
+
[Test]
[Category("P1")]
[Description("Test Icon relative orientation in Button. Check whether IconRelativeOrientation is readable and writable.")]
{
var button = new Button();
Assert.IsNotNull(button, "Should be not null");
- Assert.IsInstanceOf<Components.Button>(button, "Should return Button instance");\r
- button.IconRelativeOrientation = Button.IconOrientation.Top;\r
- Assert.AreEqual(Button.IconOrientation.Top, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");\r
- button.IconRelativeOrientation = Button.IconOrientation.Bottom;\r
- Assert.AreEqual(Button.IconOrientation.Bottom, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");\r
- button.IconRelativeOrientation = Button.IconOrientation.Left;\r
- Assert.AreEqual(Button.IconOrientation.Left, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");\r
- button.IconRelativeOrientation = Button.IconOrientation.Right;\r
+ Assert.IsInstanceOf<Components.Button>(button, "Should return Button instance");
+ button.IconRelativeOrientation = Button.IconOrientation.Top;
+ Assert.AreEqual(Button.IconOrientation.Top, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");
+ button.IconRelativeOrientation = Button.IconOrientation.Bottom;
+ Assert.AreEqual(Button.IconOrientation.Bottom, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");
+ button.IconRelativeOrientation = Button.IconOrientation.Left;
+ Assert.AreEqual(Button.IconOrientation.Left, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");
+ button.IconRelativeOrientation = Button.IconOrientation.Right;
Assert.AreEqual(Button.IconOrientation.Right, button.IconRelativeOrientation, "Should be equals to the set value of IconRelativeOrientation");
button.Dispose();
}