Exemplo n.º 1
0
        public void InitPropertiesTest()
        {
            TelemetryManager tm = new TelemetryManager((TestCommon.Instance.BuildContextFactory() as TestPnPContextFactory).GetGlobalSettingsOptions());
            var initProps       = tm.PopulateInitProperties();

            Assert.IsTrue(initProps.ContainsKey("PnPCoreSDKVersion"));
            Assert.IsTrue(!string.IsNullOrEmpty(initProps["PnPCoreSDKVersion"]));
            Assert.IsTrue(initProps.ContainsKey("AADTenantId"));
            Assert.IsTrue(!string.IsNullOrEmpty(initProps["AADTenantId"]));
            Assert.IsTrue(initProps.ContainsKey("OS"));
            Assert.IsTrue(!string.IsNullOrEmpty(initProps["OS"]));
        }