Changeset 1858


Ignore:
Timestamp:
Aug 23, 2010, 4:42:54 AM (11 years ago)
Author:
malischewski
Message:

modified for unit tests

Location:
trunk/CrypPlugins/CostFunction
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/CostFunction/CostFunction.cs

    r1857 r1858  
    4040        private byte[] inputText = null;
    4141        private byte[] outputText = null;
    42         private double value = 0;
     42        private double value = 0.0;
    4343        private Boolean stopped = true;
    4444        private IControlCost controlSlave;
     
    8686            }
    8787        }
     88        #region testing
     89        public void changeFunctionType(int type)
     90        {
     91            this.settings.changeFunctionType(type);
     92        }
     93        #endregion
    8894
    8995        [PropertyInfo(Direction.OutputData, "Text Output", "Your Text will be send here", "", DisplayLevel.Beginner)]
  • trunk/CrypPlugins/CostFunction/CostFunction.csproj

    r1857 r1858  
    5353  </PropertyGroup>
    5454  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    55     <PlatformTarget>x64</PlatformTarget>
     55    <PlatformTarget>AnyCPU</PlatformTarget>
    5656    <OutputPath>..\..\CrypBuild\x64\Debug\CrypPlugins</OutputPath>
    5757    <ErrorReport>prompt</ErrorReport>
  • trunk/CrypPlugins/CostFunction/CostFunctionSettings.cs

    r1731 r1858  
    218218        }
    219219
     220
     221
    220222        #endregion
    221223
     
    233235
    234236        #endregion
     237
     238        #region testing
     239        public void changeFunctionType(int type)
     240        {
     241                      this.functionType = type;
     242                UpdateTaskPaneVisibility();
     243                OnPropertyChanged("FunctionType");
     244           
     245       
     246        }
     247#endregion
    235248    }
    236249   
Note: See TracChangeset for help on using the changeset viewer.