Fixed tests

This commit is contained in:
Darth Affe 2024-08-11 21:32:10 +02:00
parent 2c2250d9d7
commit 61035cb376
2 changed files with 42 additions and 42 deletions

View File

@ -748,7 +748,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongXBig()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -756,7 +756,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongYBig()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -764,7 +764,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongXSmall()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -772,7 +772,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongYSmall()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -780,7 +780,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongX()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -788,7 +788,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongY()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -796,7 +796,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongWidth()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -804,7 +804,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongHeight()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -812,7 +812,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInvalidSizeWidth()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -820,7 +820,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInvalidSizeHeight()
{
Image<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -828,7 +828,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInterfaceWrongX()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -836,7 +836,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInterfaceWrongY()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -844,7 +844,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInterfaceWrongWidth()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -852,7 +852,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInterfaceWrongHeight()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -860,7 +860,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInterfaceInvalidSizeWidth()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -868,7 +868,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInterfaceInvalidSizeHeight()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -876,7 +876,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnsIndexerToBig()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -884,7 +884,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnsIndexerToSmall()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -892,7 +892,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowsIndexerToBig()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -900,7 +900,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowsIndexerToSmall()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -908,7 +908,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnIndexerToBig()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -916,7 +916,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnIndexerToSmall()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -924,7 +924,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowIndexerToBig()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);
@ -932,7 +932,7 @@ public class ImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowIndexerToSmall()
{
IImage image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20);

View File

@ -296,7 +296,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongXBig()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -304,7 +304,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongYBig()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -312,7 +312,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongXSmall()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -320,7 +320,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void IndexerWrongYSmall()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -328,7 +328,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongX()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -336,7 +336,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongY()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -344,7 +344,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongWidth()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -352,7 +352,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageWrongHeight()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -360,7 +360,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInvalidSizeWidth()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -368,7 +368,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void SubImageInvalidSizeHeight()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -376,7 +376,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnsIndexerToBig()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -384,7 +384,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnsIndexerToSmall()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -392,7 +392,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowsIndexerToBig()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -400,7 +400,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowsIndexerToSmall()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -408,7 +408,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnIndexerToBig()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -416,7 +416,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void ColumnIndexerToSmall()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -424,7 +424,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowIndexerToBig()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();
@ -432,7 +432,7 @@ public class RefImageTest
}
[TestMethod]
[ExpectedException(typeof(IndexOutOfRangeException))]
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void RowIndexerToSmall()
{
RefImage<ColorRGB> image = TestDataHelper.CreateTestImage<ColorRGB>(10, 20).AsRefImage();