Exemple #1
0
        public void RawObjectViewContentNull()
        {
            object content = null;
            var    view    = new RawObjectView(content);

            Assert.AreEqual(view.Content, "NULL");
        }
Exemple #2
0
        public void RawObjectViewContent()
        {
            var content = 25.23;
            var view    = new RawObjectView(content);

            Assert.AreEqual(view.Content, content.ToString());
        }
Exemple #3
0
        public void RawObjectViewTestStatusCode()
        {
            var view = new RawObjectView("");

            Assert.AreEqual(view.StatusCode, 200);
        }