[Test] public void ShouldBuildListNodeFromIntArray() { var sut = new AddTwoNumbers_Problem(); var input = new[] {2, 4, 3}; var node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); input = new[] {5, 6, 4}; node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); input = new[] {9, 9, 9}; node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); input = new[] {0, 0, 0, 1}; node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); input = new[] {7, 0, 8}; node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); input = new[] {1}; node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); input = new[] {0}; node = sut.BuildList(input); input.ShouldBe(sut.Output(node)); }