Reverse a linked list I was given 15 minutes to write the code to reverse a singly-linked list.

What do you think of the code style here?

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace LinkedListQuestions
{
    [TestClass]
    public class ReverseLinkedList
    {
        [TestMethod]
        public void ReservseLinkedListTest()
        {
            Node&lt;int&gt; head = new Node&lt;int&gt;();
            Node&lt;int&gt; two = new Node&lt;int&gt;();
            Node&lt;int&gt; three = new Node&lt;int&gt;();
            Node&lt;int&gt; four = new Node&lt;int&gt;();
            head.Value = 1;
            head.Next = two;
            two.Value = 2;
            two.Next = three;
            three.Value = 3;
            three.Next = four;
            four.Value = 4;
            LinkedListHandler.Reserve(ref head);
            Assert.AreEqual(4, head.Value);
            Assert.AreEqual(3, head.Next.Value);
            Assert.AreEqual(2, head.Next.Next.Value);
            Assert.AreEqual(1, head.Next.Next.Next.Value);
        }
    }

    public class LinkedListHandler
    {
        public static void Reserve(ref Node&lt;int&gt; head)
        {
            Node&lt;int&gt; current = head;
            Node&lt;int&gt; previous = null;
            while (current != null)
            {
                Node&lt;int&gt; temp = current.Next;
                current.Next = previous;
                previous = current;
                current = temp;
            }
            head = previous;
        }
    }

    public class Node&lt;T&gt;
    {
        public T Value { get; set; }
        public Node&lt;T&gt; Next { get; set; }
    }
}
Test cases right off the bat are a good sign. You only have one, but it is now easier to expand other conditions. I like to add in conditions for list has 0 elements and list is null. You'll be able to prove that those work, or if they don't work, prove that changing it didn't break anything.

Two of the methods use the word Reserve instead of Reverse: ReservseLinkedListTest and Reserve.

For a 15 minute code interview, I'd give it a passing grade.