public void JsonUtility_ToJson_should_generate_String() { Assert.Equal( "\"platform:windows\"", JsonUtility.ToJson(TestTagPredicate.Platform("windows")) ); }
public void JsonUtility_LoadJson_should_parse_String() { Assert.Equal( TestTagPredicate.Platform("windows"), JsonUtility.LoadJson <TestTagPredicate>("\"platform:windows\"") ); }
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)); }