public void TestMethod4() { IRepository <Post> repo = new MyFakeRepository <Post>(); TestController ctrl = new TestController(repo); Assert.IsInstanceOfType(ctrl.Truc(), typeof(JsonResult)); }
public void TestMethod2() { IRepository <Post> repo = new MyFakeRepository <Post>(); Assert.AreEqual(repo.Get(), null); }