/src/Ninject.Extensions.Interception.Test/AutoNotifyPropertyMethodInterceptorContextLinFu.cs

https://github.com/hereyes/ninject.extensions.interception · C# · 19 lines · 17 code · 2 blank · 0 comment · 0 complexity · b3345810986525e0f2c4f5e28874f1dc MD5 · raw file

  1. #if !SILVERLIGHT
  2. namespace Ninject.Extensions.Interception
  3. {
  4. using FluentAssertions;
  5. using LinFu.DynamicProxy;
  6. using Xunit;
  7. public class AutoNotifyPropertyMethodInterceptorContextLinFu
  8. : AutoNotifyPropertyMethodInterceptorContext<LinFuModule>
  9. {
  10. [Fact]
  11. public void WhenAutoNotifyAttributeIsAttachedToAProperty_TheObjectIsProxied()
  12. {
  13. typeof(IProxy).IsAssignableFrom(ViewModel.GetType()).Should().BeTrue();
  14. }
  15. }
  16. }
  17. #endif