Created
June 21, 2017 16:25
-
-
Save yohey03518/7759a430be66d09ef51e0f50c617343a to your computer and use it in GitHub Desktop.
LeetCode_Algorithms_2_Add_Two_Numbers_TestCase1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void OneDigit_AddOneDigit_ReturnValueLessThan10_1_Plus_1_Equal2() | |
{ | |
No2_AddTwoNumbers.ListNode firstNumber = new No2_AddTwoNumbers.ListNode(1); | |
No2_AddTwoNumbers.ListNode secondNumber = new No2_AddTwoNumbers.ListNode(1); | |
No2_AddTwoNumbers.ListNode result = solution.AddTwoNumbers(firstNumber, secondNumber); | |
Assert.AreEqual(2, result.val); | |
Assert.IsTrue(result.next == null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment