Ejemplo n.º 1
0
        public void AddCharacterViewModelHaveSimpleFields()
        {
            var field     = _mock.CreateField(new ProjectField());
            var vm        = new AddCharacterViewModel().Fill(_mock.Group, _mock.Master.UserId);
            var fieldView = vm.Fields.Field(field);

            fieldView.ShouldNotBeNull();
            fieldView.Value.ShouldBeNull();
            fieldView.ShouldBeHidden();
            fieldView.ShouldBeEditable();
        }