public void LoggerTest()//logger test { double[,,] check = new double[10, 10, 10]; double time = 1; double tau = 0.1; double h = 1; ILogger log = new NLogAdapter(); Thermo teplo = new Thermo(log); teplo.PoslCulс3D(check, time, tau, h); log = teplo._Logger; Assert.AreNotEqual(log, null); }
public OutputDate3D CulcTeploPosl3D(InputDate3D inputDate) { OutputDate3D mass_data = new OutputDate3D(); double[,,] array1 = ToMulti3D(inputDate.Mass_u); double h = inputDate.H; double time = inputDate.Time; double tau = inputDate.Tau; ILogger log = new NLogAdapter(); Thermo teplo = new Thermo(log); double[,,] array2 = teplo.PoslCulс3D(array1, time, tau, h); mass_data.Culc_Teplo = ToJagged3D(array2); return(mass_data); }
public void CalculationTest()//calculation test { int n = 10; double[,,] test = new double[n, n, n]; double[,,] actual = new double[n, n, n]; test = initial(); actual = initial(); ILogger log = new NLogAdapter(); Thermo teplo = new Thermo(log); double time = 1; double tau = 0.1; double h = 1; teplo.PoslCulс3D(test, time, tau, h); Assert.AreNotEqual(test, actual); }