public void Post_ShouldReturnNewChatroom() { var name = RandomName(); var fakeChatroom = new Chatroom(); IHttpActionResult response = chatroomController.Post(name); var contentResult = response as OkNegotiatedContentResult <Chatroom>; Assert.AreEqual(contentResult.Content.GetType(), fakeChatroom.GetType()); }