From acea7b2e728787a0d83bbf83c8c1f042d2c32e7e Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Mon, 3 Jun 2024 10:15:45 +0800 Subject: + plugins project --- .../MonoGame.Extended.Tweening.Tests/ColorHandler.cs | 8 ++++++++ .../MonoGame.Extended.Tweening.Tests.csproj | 7 +++++++ .../MonoGame.Extended.Tweening.Tests/TweenerTests.cs | 15 +++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/ColorHandler.cs create mode 100644 Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj create mode 100644 Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/TweenerTests.cs (limited to 'Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests') diff --git a/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/ColorHandler.cs b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/ColorHandler.cs new file mode 100644 index 0000000..a4cddc0 --- /dev/null +++ b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/ColorHandler.cs @@ -0,0 +1,8 @@ +using Microsoft.Xna.Framework; + +namespace MonoGame.Extended.Tweening.Tests; + +public class ColorHandler +{ + public Color Color { get; set; } +} diff --git a/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj new file mode 100644 index 0000000..88ce44f --- /dev/null +++ b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/TweenerTests.cs b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/TweenerTests.cs new file mode 100644 index 0000000..0fbfded --- /dev/null +++ b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tweening.Tests/TweenerTests.cs @@ -0,0 +1,15 @@ +using Microsoft.Xna.Framework; +using Xunit; + +namespace MonoGame.Extended.Tweening.Tests; + +public class TweenerTests +{ + [Fact] + public void TweenerTweenToSuccessTest() + { + var tweener = new Tweener(); + var obj = new ColorHandler(); + tweener.TweenTo(obj, x => x.Color, Color.Red, 2f); + } +} -- cgit v1.1-26-g67d0