public void TestValidationWithInheritance() { Assert.Inconclusive("TODO: Think about inheritance and IViewModel implementation."); SourceList = CustomerRepository.GetCustomers(); VM = new CollectionOfCustomerWithBaseVM(); VM.InitializeFrom(SourceList); Assert.IsNotNull(VM.GetValue(CollectionOfCustomerWithBaseVM.ClassDescriptor.Customers)); Assert.IsTrue(VM.IsValid); }
public void TestAccessInheritedProperty() { Assert.Inconclusive("TODO: Think about inheritance and IViewModel implementation."); SourceList = CustomerRepository.GetCustomers(); VM = new CollectionOfCustomerWithBaseVM(); VM.InitializeFrom(SourceList); VM.Children.Add(VM.GetValue(CollectionOfCustomerWithBaseVM.ClassDescriptor.Customers)[0]); Assert.IsNotNull(VM.GetValue(CollectionOfCustomerWithBaseVM.ClassDescriptor.Children)); Assert.IsFalse(VM.GetValue(CollectionOfCustomerWithBaseVM.ClassDescriptor.Children).Single().IsExpanded); }