Example #1
0
        public void TestSimpleRelationship()
        {
            MetadataReader <DateTime> readerFromSerializedObject = MetadataReader <DateTime> .From(JsonConvert.SerializeObject(DateTime.Now));

            MetadataReader <JObject> .GetRelationships(readerFromSerializedObject._InternalSerializedObject);

            //Assert Fail for now, because this isn't even a real test.
            Assert.Fail();
        }
Example #2
0
        public void StaticObjectConstructor()
        {
            //We should also be able to generate a reader from a previously serialized object
            MetadataReader <DateTime> readerFromSerializedObject = MetadataReader <DateTime> .From(JsonConvert.SerializeObject(DateTime.Now));

            //Honestly, I think it's good enough to simply check that these three things are the same.
            //This would be after round trip serialization.
            Assert.IsTrue(readerFromSerializedObject._InternalDeserializedObject.Day == DateTime.Now.Day);
            Assert.IsTrue(readerFromSerializedObject._InternalDeserializedObject.Month == DateTime.Now.Month);
            Assert.IsTrue(readerFromSerializedObject._InternalDeserializedObject.Year == DateTime.Now.Year);
        }