Exemple #1
0
        public void TestMethod2()
        {
            uint firstDecimalTest2  = 15;
            uint secondDecimalTest2 = 20;
            uint thirdDecimalTest   = 23;
            int  expectedSecond     = 10;
            int  actualSecond       = MathProblems.SumBinaryRepresentations(firstDecimalTest2, secondDecimalTest2, thirdDecimalTest);

            Assert.AreEqual(expectedSecond, actualSecond);
        }
Exemple #2
0
        public void TestMethod1()

        {
            uint firstDecimalTest  = 12;
            uint secondDecimalTest = 18;
            int  expected          = 4;
            int  actual            = MathProblems.SumBinaryRepresentations(firstDecimalTest, secondDecimalTest);

            Assert.AreEqual(expected, actual);
        }