コード例 #1
0
 public void JsonUtility_ToJson_should_generate_String()
 {
     Assert.Equal(
         "\"platform:windows\"",
         JsonUtility.ToJson(TestTagPredicate.Platform("windows"))
         );
 }
コード例 #2
0
 public void JsonUtility_LoadJson_should_parse_String()
 {
     Assert.Equal(
         TestTagPredicate.Platform("windows"),
         JsonUtility.LoadJson <TestTagPredicate>("\"platform:windows\"")
         );
 }
コード例 #3
0
        public void And_Equals_should_match_by_value()
        {
            var and1 = TestTagPredicate.And(
                TestTagPredicate.Platform("a"), TestTagPredicate.Platform("b"), TestTagPredicate.Platform("c")
                );
            var and2 = TestTagPredicate.And(
                TestTagPredicate.Platform("a"), TestTagPredicate.Platform("b"), TestTagPredicate.Platform("c")
                );

            Assert.True(and1.Equals(and2));
        }