示例#1
0
        public void TheMessageIsSerializedCorrectly()
        {
            var testModel = new MessageModel
            {
                DateTime = DateTime.Now.ToString(),
                Message  = "Hello World!",
                UserTo   = "Jack Black"
            };
            var testClass = new MessageSend();

            Assert.IsInstanceOfType(testClass.SerializeModel(testModel), typeof(string));
        }