public void Create_should_bind_parameters_by_name_singleton_key_set()
        {
            var dict = new Dictionary <string, string> {
                { "a", "" },
            };
            var method = typeof(FixtureTestDataBinderTests).GetMethod("FakeFixtureMethod3");
            var binder = FixtureTestDataBinder.Create(method, dict.Keys);

            Assert.Equal(new object[] { "" }, binder.Bind(dict));
        }
        public void Create_should_bind_enum_property_value()
        {
            var dict = new Dictionary <string, string> {
                { "c", "Greetings" },
            };
            var method = typeof(FixtureTestDataBinderTests).GetMethod(nameof(FakeFixtureMethodEnum));
            var binder = FixtureTestDataBinder.Create(method, dict.Keys);
            var actual = binder.Bind(dict);

            Assert.Equal(((PHasEnumProperty)actual[0]).C, PGreetingEnum.Greetings);
        }
        public void Create_should_bind_singleton_parameter()
        {
            var dict = new Dictionary <string, string> {
                { "a", "" },
                { "b", "false" },
            };
            var method = typeof(FixtureTestDataBinderTests).GetMethod("FakeFixtureMethod");
            var binder = FixtureTestDataBinder.Create(method, dict.Keys);
            var fob    = new FixtureObject {
                A = "", B = "false"
            };

            Assert.Equal(new object[] { fob }, binder.Bind(dict));
        }