title: C# Unit Test - Test return method
body: <p>Trying to get a basic understanding of unit testing. I've created a model class that contains a method that returns a "Person" object. Now i want to test if this method "GetPerson" is actually returning a Person object (P1).</p>
  
  <p>Following the pattern of "Arrange, Act, Assert iv'e intanciated the Person class. I just don't know how to proceed from here. Would appreciate some help.</p>
  
  <p>Person Class:</p>
  
  <pre><code>public class Person
  {
      public int Id { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
  
      public Person(int id, string firstName, string lastName)
      {
          Id = id;
          FirstName = firstName;
          LastName = lastName;
      }
  
      Person p1 = new Person(1, "John", "Dhoe");
  
      public Person GetPerson()
      {
          return p1;
      }
  
  }
  </code></pre>
  
  <p>Test Class:</p>
  
  <pre><code> [TestClass]
      public class UnitTest1
      {
          [TestMethod]
          public void GetPersonTest()
          {
              //Arrange
              Person p = new Person(1, "John", "Dhoe");
  
  
              //Act
  
  
  
              //Assert
  
  
          }
      }
  </code></pre>