예제 #1
0
        public void SerializeSingleObjectSuccess()
        {
            var userJsonString = User.ToJsonString();

            Assert.True(userJsonString.Trim().Equals(UserJsonString.Trim()));
        }
예제 #2
0
        public async Task DeserializeSingleObjectAsyncSuccess()
        {
            var user = await UserJsonString.DeserializeJsonStringAsync <User>();

            Assert.True(user == User);
        }
예제 #3
0
        public async Task SerializeSingleObjectAsyncSuccess()
        {
            var userJsonString = await User.ToJsonStringAsync();

            Assert.True(userJsonString.Trim().Equals(UserJsonString.Trim()));
        }
예제 #4
0
        public void DeserializeSingleObjectSuccess()
        {
            var user = UserJsonString.DeserializeJsonString <User>();

            Assert.True(user == User);
        }