public void DataBaseValidationShouldPasslOnCorrectNoOfParametes() { DataBase db = new DataBase(); db["a"].Add(1.0d); db["a"].Add(2.0d); db["b"].Add(1.0d); db["b"].Add(2.0d); db.ValidateDB(); //expect no exception }
public void DataBaseValidationShouldFailOnMinusInfValueInsideDb() { DataBase db = new DataBase(); db["a"].Add(Double.NegativeInfinity); db.ValidateDB(); //expect exception }
public void DataBaseValidationShouldFailOnNaNValueInsideDb() { DataBase db = new DataBase(); db["a"].Add(Double.NaN); db.ValidateDB(); //expect exception }
public void DataBaseValidationShouldFailOnFDiffNoOfParameters() { DataBase db = new DataBase(); db["a"].Add(1.0d); db["b"].Add(1.0d); db["b"].Add(2.0d); db.ValidateDB(); //expect exception }