コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: JakeHamiltonVGT/Labs
        public void ArrayListDictionaryGetTotal(int a, int b, int c, int d, int e, int expected)
        {
            // Call method in other project
            int act = Lab_08_Array_List_Dictionary.Lab_08_Array_List_Dictionary_Get_Total(a, b, c, d, e);

            // Get answer
            //See if answer is correct or not
            Assert.AreEqual(expected, act);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: NathanSparta1/Labs
        public void ArrayListDictionaryGetTotal(int a, int b, int c, int d, int e, int expected)
        {
            int actual = Lab_08_Array_List_Dictionary.Lab_08_Aray_List_Dictionary_getTotals(1, 2, 3, 4, 5);

            // call method in OTHER PROJECT
            // get an answer
            // see if we can get a correct answer or not
            Assert.AreEqual(expected, actual);
        }
コード例 #3
0
ファイル: UnitTest1.cs プロジェクト: femiola12/Solutions
        // [TestCase(20, 21, 22, 23, 24, 3605)]
        // [TestCase(30, 31, 32, 33, 34, 6805)]
        // [TestCase(40, 41, 42, 43, 44, )]

        public void getTotal(int a, int b, int c, int d, int e, int expected)
        {
            // call method in OTHER PROJECT
            int act = Lab_08_Array_List_Dictionary.getTotal(1, 2, 3, 4, 5);

            //get answer
            // act = 280;
            // see if answer is correct or not
            Assert.AreEqual(expected, act);
        }