Ejemplo n.º 1
0
        public void RelayCommand_Clone_ValuesCloneProperly()
        {
            var parameter = "Lt. Cmdr. Data";
            var command   = TestCommand.CreateWithExecuteAndCanExecuteAndParameterData(null, null, parameter);

            Assert.Equal(typeof(string), command.PreferredParameterType);

            var copy = TestCommand.Clone(command);

            Assert.Equal(command.UniqueId, copy.UniqueId);
            Assert.Equal(command.PreferredParameterType, copy.PreferredParameterType);
        }