1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00

Added Windows Phone 8.1 Compatibility test

This commit is contained in:
Daniele Giardini 2015-03-31 12:12:42 +02:00
parent ea7a7a7cfd
commit d9cedbde9b
66 changed files with 120 additions and 1 deletions

View File

@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 7e1773ad5cf1f4a4fb1624b7db01ce6b
folderAsset: yes
DefaultImporter:
userData:

View File

@ -0,0 +1,7 @@
using UnityEngine;
using System.Collections;
public abstract class AbstractSampleClass<T> : ISampleClass
{
public abstract void SampleMethod(T value);
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7d00d4a04090c4d449b99ed8abb050b0
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1 @@
public interface ISampleClass {}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fe10d77baea46f0419d16e7e7ca3d677
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,10 @@
using UnityEngine;
using System.Collections;
public class SampleFloatClass : AbstractSampleClass<float>
{
public override void SampleMethod(float value)
{
Debug.Log("Sample method log > " + value);
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 76ca549e2c50e44409618e0692573570
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

View File

@ -0,0 +1,60 @@
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
public class TestScene : MonoBehaviour
{
public Text logText;
string log;
string logPrefix = "➨ Test ";
void Start()
{
SampleFloatClass sampleFloatClass;
ISampleClass isampleClass;
string testId;
// Test A
testId = "A";
try {
sampleFloatClass = new SampleFloatClass();
log += string.Format("{0}{1} " + ((sampleFloatClass as AbstractSampleClass<float>) == null ? "failed" : "success"), logPrefix, testId);
} catch (Exception e) {
log += string.Format("<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
}
// Test A2
testId = "A2";
try {
isampleClass = new SampleFloatClass();
log += string.Format("\n{0}{1} " + ((isampleClass as AbstractSampleClass<float>) == null ? "failed" : "success"), logPrefix, testId);
} catch (Exception e) {
log += string.Format("\n<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
}
// Test B
testId = "B";
try {
sampleFloatClass = new SampleFloatClass();
log += string.Format("\n{0}{1} " + ((AbstractSampleClass<float>)sampleFloatClass == null ? "failed" : "success"), logPrefix, testId);
} catch (Exception e) {
log += string.Format("\n<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
}
// Test B2
testId = "B2";
try {
isampleClass = new SampleFloatClass();
log += string.Format("\n{0}{1} " + ((AbstractSampleClass<float>)isampleClass == null ? "failed" : "success"), logPrefix, testId);
} catch (Exception e) {
log += string.Format("\n<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
}
log += "\n\n<color=#00ff00>TEST ENDED</color>";
logText.text = log;
Debug.Log(log);
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1728d8f73539b8944bc99ce9d6241be8
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Binary file not shown.

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 0be2dd474eae4314689d8de807f11672
DefaultImporter:
userData:

Binary file not shown.

View File

@ -21,7 +21,7 @@ namespace DG.Tweening
public class DOTween public class DOTween
{ {
/// <summary>DOTween's version</summary> /// <summary>DOTween's version</summary>
public static readonly string Version = "1.0.416"; public static readonly string Version = "1.0.417";
/////////////////////////////////////////////// ///////////////////////////////////////////////
// Options //////////////////////////////////// // Options ////////////////////////////////////

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.