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);
        }
Example #2
0
        public void TestMsalAppMetadataCacheItemFromJsonStringEmpty()
        {
            var item = MsalAppMetadataCacheItem.FromJsonString(null);

            Assert.IsNull(item);
        }