public void Test3() { ListNode node = ListNode.CreateNodeList(3); ListNode node2 = ListNode.CreateNodeList(3); Assert.Equal(JsonConvert.SerializeObject(Coding015.PrintForReverse(node)), JsonConvert.SerializeObject(Coding015.PrintForReverse2(node2))); }
public void TestNull() { ListNode node = null; Assert.Equal(JsonConvert.SerializeObject(Coding015.PrintForReverse(node)), JsonConvert.SerializeObject(Coding015.PrintForReverse2(node))); }