Ejemplo n.º 1
0
        public void ValidTest()
        {
            TextureSize textureSize = new TextureSize(16, 16);

            Size2 value = textureSize;
            Assert.AreEqual(value.Width, 16);
            Assert.AreEqual(value.Height, 16);
        }
Ejemplo n.º 2
0
 public void ZeroWidthTest()
 {
     TextureSize textureSize = new TextureSize(0, 16);
 }
Ejemplo n.º 3
0
 public void ZeroWidthSizeTest()
 {
     TextureSize textureSize = new TextureSize(new Size2(0, 16));
 }
Ejemplo n.º 4
0
 public void ZeroHeightTest()
 {
     TextureSize textureSize = new TextureSize(16, 0);
 }
Ejemplo n.º 5
0
 public void ZeroHeightSizeTest()
 {
     TextureSize textureSize = new TextureSize(new Size2(16, 0));
 }
Ejemplo n.º 6
0
 public void TooLargeWidthTest()
 {
     TextureSize textureSize = new TextureSize(new Size2(0, 16385));
 }
Ejemplo n.º 7
0
 public void TooLargeHeightTest()
 {
     TextureSize textureSize = new TextureSize(new Size2(16385, 0));
 }