예제 #1
0
        public void GetPropValue_ReadValue()
        {
            var result = PackageTelemetry.GetPropValue(new PropValueTestClass {
                Test = "1"
            }, "Test");

            Assert.AreEqual("1", result);
        }
예제 #2
0
        public void GetPropValue_Null()
        {
            var result = PackageTelemetry.GetPropValue(null, "test");

            Assert.AreEqual(null, result);
        }
예제 #3
0
        public void GetPropValue_Object_TestClass()
        {
            var result = PackageTelemetry.GetPropValue(new TestClass(), "Test");

            Assert.AreEqual(true, result);
        }