public void TestEcartTypeBorneInvalide() { double sommeDistance = double.NaN; int nbrPairDonnees = 2; double ecartType = VarianceCalculator.GetEcartType(sommeDistance, nbrPairDonnees); Assert.Equal(double.NaN, ecartType); }
public void TestEcartTypeBorneSuperieure() { const double ecartTypeTest = 4.47; double sommeDistance = 20; int nbrPairDonnees = 1; double ecartType = VarianceCalculator.GetEcartType(sommeDistance, nbrPairDonnees); Assert.Equal(Math.Round(ecartType, 2), ecartTypeTest); }
public void TestEcartTypeBorneInferieure() { const double ecartTypeTest = 10; double sommeDistance = 200; int nbrPairDonnees = 2; double ecartType = VarianceCalculator.GetEcartType(sommeDistance, nbrPairDonnees); Assert.Equal(ecartType, ecartTypeTest); }