public void RepoLadderTestsAddPostToLadder() { List <Ladder> ladderdb = new List <Ladder> { new Ladder { LadderID = 0, GameTitle = "Halo", MinPlayers = 2, Feed = new List <Posts>() }, }; Posts p = new Posts { PostsID = 0, Content = "Hi" }; List <Ladder> expected = new List <Ladder> { new Ladder { LadderID = 0, GameTitle = "Halo", MinPlayers = 2, Feed = new List <Posts> { p } }, }; _ladderSet.Object.AddRange(ladderdb); ConnectMocksToDataStore(ladderdb); bool result = _repo.AddPostToLadder(0, p); List <Ladder> actual = _repo.GetAllLadders(); Assert.IsTrue(result); CollectionAssert.AreEqual(expected, actual); }