Пример #1
0
        public void BaseVM_GetSubVM()
        {
            var vm = new TestVM();

             var test1 = vm.GetSubVM(typeof(TestVM).Name) as TestVM;
             Assert.IsNotNull(test1);
             Assert.AreEqual("TestVM", test1.String);

             var test2 = vm.GetSubVM(typeof(TestVM).Name, "1") as TestVM;
             Assert.IsNotNull(test2);
             Assert.AreEqual("TestVM1", test2.String);
        }
Пример #2
0
        public void BaseVM_GetSubVM()
        {
            var vm = new TestVM();

            var test1 = vm.GetSubVM(typeof(TestVM).Name) as TestVM;

            Assert.IsNotNull(test1);
            Assert.AreEqual("TestVM", test1.String);

            var test2 = vm.GetSubVM(typeof(TestVM).Name, "1") as TestVM;

            Assert.IsNotNull(test2);
            Assert.AreEqual("TestVM1", test2.String);
        }