コード例 #1
0
        public void TestSumOfSequenceBrutForceBoundaryCond()
        {
            //Arrange
            SumOfMultipleAlgoBrutForce algo = new SumOfMultipleAlgoBrutForce();

            //Act
            var output = algo.CalcullateSumOfMultipleStategy(0);

            //Assert
            Assert.AreEqual(0, output);
        }
コード例 #2
0
        public void TestSumOfSequenceByBrutForceIncluding()
        {
            //Arrange
            SumOfMultipleAlgoBrutForce algo = new SumOfMultipleAlgoBrutForce();

            //Act
            var output = algo.CalcullateSumOfMultipleStategy(16);

            //Assert
            Assert.AreEqual(60, output);
        }