Exemplo n.º 1
0
 public void AddTodoReallyAddsAnItem()
 {
     var VM = new BasicContacts.TodoVM();
     Assert.AreEqual(0, VM.List.Count);
     VM.Text = "Test";
     VM.AddCommand.Execute(null);
     Assert.AreEqual(1, VM.List.Count);
     Assert.AreEqual("Test", VM.List.First());
     Assert.AreEqual(null, VM.Text);
 }
Exemplo n.º 2
0
        public void AddTodoReallyAddsAnItem()
        {
            var VM = new BasicContacts.TodoVM();

            Assert.AreEqual(0, VM.List.Count);
            VM.Text = "Test";
            VM.AddCommand.Execute(null);
            Assert.AreEqual(1, VM.List.Count);
            Assert.AreEqual("Test", VM.List.First());
            Assert.AreEqual(null, VM.Text);
        }
Exemplo n.º 3
0
        public void AddTodoReallyAddsAnItem()
        {
            var vm = new BasicContacts.TodoVM();
            Assert.AreEqual(0, vm.List.Count);

            vm.Text = "Test";
            vm.AddCommand.Execute(null);

            Assert.AreEqual(1, vm.List.Count);
            Assert.AreEqual("Test", vm.List.First());
            Assert.IsNull(vm.Text);
        }
Exemplo n.º 4
0
        public void AddTodoReallyAddsAnItem()
        {
            var vm = new BasicContacts.TodoVM();

            Assert.AreEqual(0, vm.List.Count);

            vm.Text = "Test";
            vm.AddCommand.Execute(null);

            Assert.AreEqual(1, vm.List.Count);
            Assert.AreEqual("Test", vm.List.First());
            Assert.IsNull(vm.Text);
        }