Exemple #1
0
 public void JsonUtility_LoadJson_should_parse_String()
 {
     Assert.Equal(
         TestId.Parse("1234"),
         JsonUtility.LoadJson <TestId>("\"1234\"")
         );
 }
Exemple #2
0
 public void JsonUtility_ToJson_should_generate_String()
 {
     Assert.Equal(
         "\"1234\"",
         JsonUtility.ToJson(TestId.Parse("1234"))
         );
 }
Exemple #3
0
        public void Operator_Equals_will_test_value_equality()
        {
            var left  = TestId.Parse("9121e62543b5881d5ff2e04a9dd6ae231c55da3122a98dc4379177617955af10");
            var right = TestId.Parse("9121e62543b5881d5ff2e04a9dd6ae231c55da3122a98dc4379177617955af10");

            Assert.True(left == right);
        }