SHARE
TWEET

Untitled

a guest Aug 14th, 2019 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [TestMethod]
  2.         public void GetById_Than_Check_Correct_Object_Test()
  3.         {
  4.             var actual = new User { Id = 2, FirstName = "User2", LastName = "User2LastName" };
  5.             var expected = this.MockUserRepository.GetById(2);
  6.             Assert.IsNotNull(expected); // Test is not null
  7.             Assert.IsInstanceOfType(expected, typeof(User)); // Test type
  8.             Assert.AreEqual(actual.Id, expected.Id); // test correct object found
  9.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top