public static void AllUp( [Values(XQuadFactoryHelper.MomentFittingVariants.OneStepGauss, XQuadFactoryHelper.MomentFittingVariants.OneStepGaussAndStokes)] XQuadFactoryHelper.MomentFittingVariants variant ) { //static void Main(string[] args) { var Tests = new ITest[] { new Schraeg(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()), new Parallel(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()) }; XQuadFactoryHelper.MomentFittingVariants[] Variants = new[] { XQuadFactoryHelper.MomentFittingVariants.OneStepGauss, XQuadFactoryHelper.MomentFittingVariants.OneStepGaussAndStokes }; foreach (var tst in Tests) { XdgNastyLevsetLocationTest p = null; tst.ResetTest(); BoSSS.Solution.Application._Main(new string[0], true, delegate() { p = new XdgNastyLevsetLocationTest(); p.test = tst; p.momentFittingVariant = variant; return(p); }); Assert.IsTrue(p.IsPassed); } }
public void AllUp() { //static void Main(string[] args) { bool MpiInit; ilPSP.Environment.Bootstrap(new string[0], BoSSS.Solution.Application.GetBoSSSInstallDir(), out MpiInit); var Tests = new ITest[] { new Schraeg(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()), new Parallel(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()) }; XQuadFactoryHelper.MomentFittingVariants[] Variants = new[] { XQuadFactoryHelper.MomentFittingVariants.OneStepGauss, XQuadFactoryHelper.MomentFittingVariants.OneStepGaussAndStokes }; foreach (var tst in Tests) { foreach (var variant in Variants) { XdgNastyLevsetLocationTest p = null; tst.ResetTest(); BoSSS.Solution.Application._Main(new string[0], true, delegate() { p = new XdgNastyLevsetLocationTest(); p.test = tst; p.momentFittingVariant = variant; return(p); }); Assert.IsTrue(p.IsPassed); } } MPI.Wrappers.csMPI.Raw.mpiFinalize(); }