public void ThenValidInputsWillCalculateCorrectSquares()
        {
            int[] ans = Solutions.CalculateSquares(1, 4);

            Assert.AreEqual(1, ans[0]);
            Assert.AreEqual(4, ans[1]);
            Assert.AreEqual(9, ans[2]);
        }
예제 #2
0
        public static void CanCallCalculateSquares()
        {
            var start  = 729005034;
            var end    = 911807542;
            var result = Solutions.CalculateSquares(start, end);

            Assert.Fail("Create or modify test");
        }
 public void ThenSameValuesAreInvalid()
 {
     Assert.ThrowsException <ArgumentOutOfRangeException>(() => Solutions.CalculateSquares(5, 5));
 }
 public void ThenANegativeDifferenceIsInvalid()
 {
     Assert.ThrowsException <ArgumentOutOfRangeException>(() => Solutions.CalculateSquares(5, 4));
 }