public void GetAllPostsByForumIdDescTest_NotNull_ReturnEqual() { //Arrange PostContainer postcontainer = new PostContainer(); List <Post> expectedpsots = new List <Post>(); //Act postcontainer.GetAllPostsByForumId(6); List <Post> posts = postcontainer.Posts; //Assert Assert.IsTrue(posts.Count == 3); }
public void GetAllPostsByForumIdDescTest_Null_ReturnEqual() { //Arrange PostContainer postcontainer = new PostContainer(); List <Post> expectedpsots = new List <Post>(); //Act postcontainer.GetAllPostsByForumId(100); List <Post> posts = postcontainer.Posts; //Assert CollectionAssert.AreEquivalent(expectedpsots, posts); }