Beispiel #1
0
        public void CreateArgumentsCollectionFromDictionaryTest()
        {
            string key   = "key";
            int    value = 10;
            Dictionary <string, object> arguments = new Dictionary <string, object>()
            {
                { key, value }
            };
            ArgumentCollection argumentCollection = ArgumentCollection.FromDictionary(arguments);

            Assert.IsTrue(argumentCollection.Any());
            Assert.IsTrue(argumentCollection.HasArgument(key));
            Assert.AreEqual(value, argumentCollection[key]);
        }