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

https://github.com/hereyes/ninject.extensions.interception · C# · 19 lines · 17 code · 2 blank · 0 comment · 0 complexity · 83e55c1c4b47096a1eeb2bd9c917b816 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 AutoNotifyPropertyClassProxyContextLinFu :
  8. AutoNotifyPropertyClassProxyContext<LinFuModule>
  9. {
  10. [Fact]
  11. public void WhenAutoNotifyAttributeIsAttachedToAClass_TheObjectIsProxied()
  12. {
  13. typeof(IProxy).IsAssignableFrom(ViewModel.GetType()).Should().BeTrue();
  14. }
  15. }
  16. }
  17. #endif