コード例 #1
0
        public void detects_BindingValue_and_returns_inner_value()
        {
            var testValue = "testValue";
            var binder    = new PassthroughConverter <HttpPostedFileBase>();
            var context   = MockRepository.GenerateMock <IPropertyContext>();

            context.Stub(c => c.RawValueFromRequest).Return(new BindingValue()
            {
                RawValue = testValue
            });
            binder.Convert(context).ShouldBeTheSameAs(testValue);
        }