Exemple #1
0
        public void Binder_should_Accept_attribute()
        {
            var attribute = new BindUsingAttribute(typeof(TestBinder2));
            var binder    = attribute.GetBinder() as TestBinder2;

            binder.Attribute.ShouldNotBeNull();
        }
Exemple #2
0
 public void Accept(Attribute attribute)
 {
     this.Attribute = (BindUsingAttribute)attribute;
 }
Exemple #3
0
        public void Should_delegate_to_inner_binder()
        {
            var attribute = new BindUsingAttribute(typeof(TestBinder));

            attribute.GetBinder().ShouldBe <TestBinder>();
        }