Example #1
0
        public void ShouldReturnTrue()
        {
            CubeChecker cube = new CubeChecker();

            Assert.AreEqual(true, cube.IsCube(1, 1));
            Assert.AreEqual(true, cube.IsCube(8, 2));
        }
Example #2
0
        public void ShouldReturnFalse()
        {
            CubeChecker cube = new CubeChecker();

            Assert.AreEqual(false, cube.IsCube(2, 1));
            Assert.AreEqual(false, cube.IsCube(6, 3));
            Assert.AreEqual(false, cube.IsCube(0, 0));
            Assert.AreEqual(false, cube.IsCube(200, 4));
            Assert.AreEqual(false, cube.IsCube(-8, -2));
        }