예제 #1
0
        public void TestSherlockAndSquaresSolution(int min, int max, int expectedCount)
        {
            // arrange
            Solutions.Implementation.SherlockAndSquares.Solution sherlock = new Solutions.Implementation.SherlockAndSquares.Solution();

            // act
            int actualCount = sherlock.CountSquareIntegersInRange(min, max);

            // assert
            NUnit.Framework.Assert.AreEqual(actualCount, expectedCount);
        }
예제 #2
0
        public void TestSherlockAndSquaresSolution(int min, int max, int expectedCount)
        {
            // arrange
            Solutions.Implementation.SherlockAndSquares.Solution sherlock = new Solutions.Implementation.SherlockAndSquares.Solution();

            // act
            int actualCount = sherlock.CountSquareIntegersInRange(min, max);

            // assert
            NUnit.Framework.Assert.AreEqual(actualCount, expectedCount);
        }