public void JsonUtility_ToJson_should_generate_String() { Assert.Equal( "\"platform:windows\"", JsonUtility.ToJson(TestTag.Platform("windows")) ); }
public void AliasTo_should_obtain_alias_of_macOS() { Assert.Equal( TestTag.macOSPlatform, TestTag.Platform("osx").AliasTo ); }
public void JsonUtility_LoadJson_should_parse_String() { Assert.Equal( TestTag.Platform("windows"), JsonUtility.LoadJson <TestTag>("\"platform:windows\"") ); }
public void AreEquivalent_is_symmetric_and_applies_to_macos() { Assert.True( TestTag.AreEquivalent(TestTag.Platform("osx"), TestTag.macOSPlatform) ); Assert.True( TestTag.AreEquivalent(TestTag.macOSPlatform, TestTag.Platform("osx")) ); }
public void IsAlias_should_apply_to_osx_platform() { Assert.True( TestTag.Platform("osx").IsAlias ); }