public void TestAppMetadata_SerializeDeserialize() { var item = new MsalAppMetadataCacheItem(TestConstants.ClientId, "env", "1"); string asJson = item.ToJsonString(); var item2 = MsalAppMetadataCacheItem.FromJsonString(asJson); Assert.AreEqual(item, item2); }
public void TestMsalAppMetadataCacheItemFromJsonStringEmpty() { var item = MsalAppMetadataCacheItem.FromJsonString(null); Assert.IsNull(item); }