Beispiel #1
0
        public void PerDelegateData_Keys()
        {
            var data = new PerDelegateData();

            data.SetExtraData("Hello", 5);

            var keys = data.Keys.ToArray();

            Assert.Equal(1, keys.Length);
            Assert.Equal("Hello", keys[0]);
        }
Beispiel #2
0
        public void PerDelegateData_Values()
        {
            var data = new PerDelegateData();

            data.SetExtraData("Hello", 5);

            var values = data.Values.ToArray();

            Assert.Equal(1, values.Length);
            Assert.Equal(5, values[0]);
        }
Beispiel #3
0
        public void PerDelegateData_KVP()
        {
            var data = new PerDelegateData();

            data.SetExtraData("Hello", 5);

            var values = data.KeyValuePairs.ToArray();

            Assert.Equal(1, values.Length);
            Assert.Equal("Hello", values[0].Key);
            Assert.Equal(5, values[0].Value);
        }