* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
+ * See the License for the specific language governing permissions and
* limitations under the License
*/
using System;
-using Tizen.Auto.Template;
+using NUnitLite.TUnit;
+using AutoTemplate;
-namespace Tizen.Applications.Tests
+namespace XamarinForTizen.Tizen
{
- public class Program
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
+ private static App _app;
+ protected override void OnCreate()
+ {
+ base.OnCreate();
+
+ Console.WriteLine("TCT : OnCreate()");
+ _app = new App();
+ LoadApplication(_app);
+
+ TRunner t = new TRunner();
+ t.LoadTestsuite();
+ t.Execute();
+ }
+
+ public static App getApp()
+ {
+ return _app;
+ }
static void Main(string[] args)
{
- Console.WriteLine("TCT CSharp: Main()");
- var app = new App();
+ Console.WriteLine("TCT : Main()");
+ var app = new Program();
+ global::Xamarin.Forms.Forms.Init(app);
app.Run(args);
}
}
* limitations under the License
*/
-
-
using System;
-using NUnitLite.TUnit;
-using Tizen.NUI;
-using Tizen.Manual.Template;
+using NUnit.Framework;
+using Xamarin.Forms;
-namespace Tizen.Applications.AttachPanel.Manual.Tests
+namespace XamarinApplication.Tizen
{
- public class Program : NUIApplication
+ class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
-
+ private Application _app;
protected override void OnCreate()
{
Console.WriteLine("TCT : OnCreate()");
base.OnCreate();
- ManualTemplate.GetInstance();
+ if (ManualTest.IsWearable())
+ {
+ _app = new WearableTemplate.MainPage();
+ }
+ else
+ {
+ _app = new ManualTemplate.MainPage();
+ }
+ LoadApplication(_app);
}
static void Main(string[] args)
{
Console.WriteLine("TCT : Main()");
var app = new Program();
+ global::Xamarin.Forms.Forms.Init(app);
app.Run(args);
}
}