diff options
author | chai <215380520@qq.com> | 2024-06-03 10:15:45 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-06-03 10:15:45 +0800 |
commit | acea7b2e728787a0d83bbf83c8c1f042d2c32e7e (patch) | |
tree | 0bfec05c1ca2d71be2c337bcd110a0421f19318b /Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/TextureAtlases/TextureRegion2DTests.cs | |
parent | 88febcb02bf127d961c6471d9e846c0e1315f5c3 (diff) |
+ plugins project
Diffstat (limited to 'Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/TextureAtlases/TextureRegion2DTests.cs')
-rw-r--r-- | Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/TextureAtlases/TextureRegion2DTests.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/TextureAtlases/TextureRegion2DTests.cs b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/TextureAtlases/TextureRegion2DTests.cs new file mode 100644 index 0000000..1274b10 --- /dev/null +++ b/Plugins/MonoGame.Extended/tests/MonoGame.Extended.Tests/TextureAtlases/TextureRegion2DTests.cs @@ -0,0 +1,40 @@ +//using Microsoft.Xna.Framework.Graphics; +//using MonoGame.Extended.TextureAtlases; +//using Xunit; + +//namespace MonoGame.Extended.Tests.TextureAtlases +//{ +// +// public class TextureRegion2DTests +// { +// [Fact] +// public void TextureRegion2D_FromTexture_Test() +// { +// var graphicsDevice = TestHelper.CreateGraphicsDevice(); +// var texture = new Texture2D(graphicsDevice, 100, 200); +// var textureRegion = new TextureRegion2D(texture); + +// Assert.AreSame(texture, textureRegion.Texture); +// Assert.Equal(0, textureRegion.X); +// Assert.Equal(0, textureRegion.Y); +// Assert.Equal(100, textureRegion.Width); +// Assert.Equal(200, textureRegion.Height); +// Assert.IsNull(textureRegion.Tag); +// } + +// [Fact] +// public void TextureRegion2D_Specified_Test() +// { +// var graphicsDevice = TestHelper.CreateGraphicsDevice(); +// var texture = new Texture2D(graphicsDevice, 100, 200); +// var textureRegion = new TextureRegion2D(texture, 10, 20, 30, 40); + +// Assert.AreSame(texture, textureRegion.Texture); +// Assert.Equal(10, textureRegion.X); +// Assert.Equal(20, textureRegion.Y); +// Assert.Equal(30, textureRegion.Width); +// Assert.Equal(40, textureRegion.Height); +// Assert.IsNull(textureRegion.Tag); +// } +// } +//}
\ No newline at end of file |