예제 #1
0
        public void FromObject_ByteMaxValue()
        {
            TestClass_Byte instance = new TestClass_Byte { Value = byte.MaxValue };
            JObject output = JObject.FromObject(instance);

            StringAssert.AreEqual(@"{
  ""Value"": 255
}", output.ToString());
        }
예제 #2
0
        public void FromObject_ByteMaxValue()
        {
            TestClass_Byte instance = new TestClass_Byte {
                Value = byte.MaxValue
            };
            JObject output = JObject.FromObject(instance);

            StringAssert.AreEqual(@"{
  ""Value"": 255
}", output.ToString());
        }