コード例 #1
0
            public void PhotosDelete()
            {
                PhotosController controller = new PhotosController();
                var result = controller.Delete(1);
                Assert.IsNotNull(result);

            }
コード例 #2
0
            public void PhotosDeleteNull()
            {
                PhotosController controller = new PhotosController();
                var result = (HttpStatusCodeResult)controller.Delete(null);
                Assert.AreEqual(400, result.StatusCode);
                Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult));

            }