Esempio n. 1
0
        public void TestMethod4()
        {
            IRepository <Post> repo = new MyFakeRepository <Post>();
            TestController     ctrl = new TestController(repo);

            Assert.IsInstanceOfType(ctrl.Truc(), typeof(JsonResult));
        }
Esempio n. 2
0
        public void TestMethod2()
        {
            IRepository <Post> repo = new MyFakeRepository <Post>();

            Assert.AreEqual(repo.Get(), null);
        }