Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestMethod]
- public void GetById_Than_Check_Correct_Object_Test()
- {
- var actual = new User { Id = 2, FirstName = "User2", LastName = "User2LastName" };
- var expected = this.MockUserRepository.GetById(2);
- Assert.IsNotNull(expected); // Test is not null
- Assert.IsInstanceOfType(expected, typeof(User)); // Test type
- Assert.AreEqual(actual.Id, expected.Id); // test correct object found
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement