diff --git a/MonoGame.Extended.Tweening.Tests/ColorHandler.cs b/MonoGame.Extended.Tweening.Tests/ColorHandler.cs new file mode 100644 index 00000000..a4cddc0a --- /dev/null +++ b/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/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj b/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj new file mode 100644 index 00000000..cfe82093 --- /dev/null +++ b/MonoGame.Extended.Tweening.Tests/MonoGame.Extended.Tweening.Tests.csproj @@ -0,0 +1,29 @@ + + + + net6.0 + enable + enable + + false + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + diff --git a/MonoGame.Extended.Tweening.Tests/TweenerTests.cs b/MonoGame.Extended.Tweening.Tests/TweenerTests.cs new file mode 100644 index 00000000..0fbfded1 --- /dev/null +++ b/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); + } +} diff --git a/MonoGame.Extended.sln b/MonoGame.Extended.sln index d4297b30..195a7acc 100644 --- a/MonoGame.Extended.sln +++ b/MonoGame.Extended.sln @@ -47,6 +47,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Benchmarks", "Benchmarks", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Extended.Benchmarks.Collisions", "MonoGame.Extended.Benchmarks.Collisions\MonoGame.Extended.Benchmarks.Collisions.csproj", "{6B5939ED-E99D-4842-B4FE-A7624C59A60A}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Extended.Tweening.Tests", "MonoGame.Extended.Tweening.Tests\MonoGame.Extended.Tweening.Tests.csproj", "{A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -199,6 +201,14 @@ Global {6B5939ED-E99D-4842-B4FE-A7624C59A60A}.Release|Any CPU.Build.0 = Release|Any CPU {6B5939ED-E99D-4842-B4FE-A7624C59A60A}.Release|x86.ActiveCfg = Release|Any CPU {6B5939ED-E99D-4842-B4FE-A7624C59A60A}.Release|x86.Build.0 = Release|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Debug|x86.ActiveCfg = Debug|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Debug|x86.Build.0 = Debug|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Release|Any CPU.Build.0 = Release|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Release|x86.ActiveCfg = Release|Any CPU + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -212,6 +222,7 @@ Global {34841DEB-EEC0-477C-B19D-CBB6DF49ED39} = {E5A148A1-DE7B-4D17-ABE8-831B9673B863} {CB439E84-F0F6-4790-8CD1-8A66C3D7B4DA} = {E5A148A1-DE7B-4D17-ABE8-831B9673B863} {6B5939ED-E99D-4842-B4FE-A7624C59A60A} = {AAB81CB9-9C71-4499-A51E-933C384D6DBF} + {A1BD6FDC-5A76-4D14-8FDA-ACD153C8EBCC} = {E5A148A1-DE7B-4D17-ABE8-831B9673B863} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {8ED5A62D-25EC-4331-9F99-BDD1E10C02A0}