Example #1
0
        private static void TestSimplePair(Component.Contracts.IKeyValuePairTesting target)
        {
            int key   = 5;
            int value = 27;

            Assert.AreEqual(new KeyValuePair <int, int>(key, value), target.MakeSimplePair(key, value));
        }
Example #2
0
        private static void TestMarshaledPair(Component.Contracts.IKeyValuePairTesting target)
        {
            string key   = "Key";
            string value = "Value";

            Assert.AreEqual(new KeyValuePair <string, string>(key, value), target.MakeMarshaledPair(key, value));
        }
Example #3
0
 public static void RunTest()
 {
     Component.Contracts.IKeyValuePairTesting target = (Component.Contracts.IKeyValuePairTesting)WinRTNativeComponent.GetObjectFromNativeComponent("Component.Contracts.KeyValuePairTesting");
     TestSimplePair(target);
     TestMarshaledPair(target);
 }