Exemple #1
0
        public static void CalculateRectanglesByCoordinates_ShouldReturnIntegerResult_WhenCollectionIsNotNullHelper(IEnumerable <IEnumerable> enumerable, int expectedResult)
        {
            OrthogonalRectangles.CalculateRectanglesByCoordinates(enumerable);

            var actualResult = OrthogonalRectangles.Count;

            Assert.AreEqual(expectedResult, actualResult);
        }
Exemple #2
0
 public static void CalculateRectanglesByCoordinates_ShouldThrowException_WhenCollectionIsNullHelper()
 {
     Assert.ThrowsException <ArgumentNullException>(() => OrthogonalRectangles.CalculateRectanglesByCoordinates(null),
                                                    "Argument can not be nul");
 }