#region LICENSE
/*
* $RCSfile$
* Copyright (C) 2004 D. R. E. Moonfire (d.moonfire@mfgames.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#endregion LICENSE
using NUnit.Framework;
using System.Drawing;
namespace SdlDotNet.Tests{
/// <summary>
///
/// </summary>
[TestFixture]
public class SdlSpriteTest
{
/*
[Test] public void TestEmptyManager()
{
SpriteManager sm = new SpriteManager();
Assertion.AssertEquals(0, sm.GetSprites().Count);
}
[Test] public void TestSingleSprite()
{
SpriteManager sm = new SpriteManager();
Sprite s = new Sprite();
sm.Add(s);
Assertion.AssertEquals(1, sm.GetSprites().Count);
}
[Test] public void TestSpriteAddedTwice()
{
SpriteManager sm = new SpriteManager();
Sprite s = new Sprite();
sm.Add(s);
sm.Add(s);
Assertion.AssertEquals(1, sm.GetSprites().Count);
}
[Test] public void TestSpriteRemoved()
{
SpriteManager sm = new SpriteManager();
Sprite s = new Sprite();
sm.Add(s);
sm.Remove(s);
Assertion.AssertEquals(0, sm.GetSprites().Count);
}
[Test] public void TestNestedSpriteManager()
{
SpriteManager sm = new SpriteManager();
SpriteManager sm1 = new SpriteManager();
Sprite s = new Sprite();
sm1.Add(s);
sm.Add(sm1);
Assertion.AssertEquals(1, sm.GetSprites().Count);
}
[Test] public void TestTranslatedSpriteZ()
{
Sprite s = new Sprite(new Point(10, 13), 6);
Sprite t = new TranslateSprite(s, 5, 8);
Assertion.AssertEquals(s.Z, t.Z);
}
[Test] public void TestTranslatedSpriteX()
{
Sprite s = new Sprite(new Point(10, 13), 6);
Sprite t = new TranslateSprite(s, 5, 8);
Assertion.AssertEquals(s.X + 5, t.X);
}
[Test] public void TestTranslatedSpriteY()
{
Sprite s = new Sprite(new Point(10, 13), 6);
Sprite t = new TranslateSprite(s, 5, 8);
Assertion.AssertEquals(s.Y + 8, t.Y);
}
[Test] public void TestTranslatedSpriteHashCode()
{
Sprite s = new Sprite(new Point(10, 13), 6);
Sprite t = new TranslateSprite(s, 5, 8);
Assertion.AssertEquals(s.GetHashCode(), t.GetHashCode());
}
*/
}
}
|