Exemple #1
0
        public void IsDynamicProxyType_Test()
        {
            var proxy = DynamicProxyTool.CreateNotifyPropertyChanged <SimpleViewModel>();

            proxy.GetType().IsDynamicProxyType().Should().Be.True();
            typeof(SimpleViewModel).IsDynamicProxyType().Should().Be.False();
        }
Exemple #2
0
        public void IsDynamicProxy_Test()
        {
            var proxy = DynamicProxyTool.CreateNotifyPropertyChanged <SimpleViewModel>();

            proxy.IsDynamicProxy().Should().Be.True();
            new SimpleViewModel().IsDynamicProxy().Should().Be.False();
        }
Exemple #3
0
        public void Can_Create_NotifyPropertyChanged_Proxy_Factory()
        {
            var proxy = (SimpleViewModel)DynamicProxyTool.CreateNotifyPropertyChanged(() => new SimpleViewModel());

            VerifyNotifyPropertyChanged(proxy);
        }
Exemple #4
0
        public void Can_Create_NotifyPropertyChanged_Proxy_Generic()
        {
            var proxy = DynamicProxyTool.CreateNotifyPropertyChanged <SimpleViewModel>();

            VerifyNotifyPropertyChanged(proxy);
        }
Exemple #5
0
        public void Can_Create_NotifyPropertyChanged_Proxy_Type()
        {
            var proxy = (SimpleViewModel)DynamicProxyTool.CreateNotifyPropertyChanged(typeof(SimpleViewModel));

            VerifyNotifyPropertyChanged(proxy);
        }