示例#1
0
        public void Implementation_Calculate_NoDataAlteration()
        {
            var hash = dataStore.GetHashCode();

            var impl = new AnalysisModuleTaskX.Implementation();
            impl.FetchData(dataStore);
            impl.Calculate();
            Assert.AreEqual(hash, dataStore.GetHashCode());
        }
示例#2
0
文件: Program.cs 项目: kblc/Test
        static void Main(string[] args)
        {
            DataStore.MainInterface dataStore = new DataStore.MainInterface();

            FillDataStore.Filler dataGenerator = new FillDataStore.Filler(dataStore);

            dataGenerator.DoIt(20);

            AnalysisModuleTaskX.Implementation impl = new AnalysisModuleTaskX.Implementation();

            impl.FetchData(dataStore);
            impl.Calculate();

            Console.ReadKey();
        }
示例#3
0
 public void Implementation_Calculate_DoesNotRunWithoutFetchingFirst()
 {
     var impl = new AnalysisModuleTaskX.Implementation();
     impl.Calculate();
 }