예제 #1
0
        public void Backed_get_set_properties_can_be_deserialised()
        {
            var original = new GetSetWithBacking(123344044);
            var str1     = original.ToJson();
            var copy     = str1.FromJson <GetSetWithBacking>();

            Console.WriteLine(str1);

            Assert.That(copy.Property, Is.EqualTo(original.Property));
        }
		public void Backed_get_set_properties_can_be_deserialised()
		{
			var original = new GetSetWithBacking(123344044);
			var str1 = original.ToJson();
			var copy = str1.FromJson<GetSetWithBacking>();

			Console.WriteLine(str1);

			Assert.That(copy.Property, Is.EqualTo(original.Property));
		}