public void TestUpdate_Ammonia2000Hydrogen2000Nitrogen2000Temp750WithCatalyst1Second_GenerateAmmonia() { //Arrange DataPoint start = new DataPoint(2000, 2000, 2000, 750, 0, true); P2.AmmoniaModel m = new AmmoniaModel(start); //Act DataPoint update = m.Update(1); //Assert Assert.IsTrue((update.nAmmonia < start.nAmmonia) && (update.nHydrogen > start.nHydrogen) && (update.nNitrogen > start.nNitrogen)); }
public void TestUpdate_NoHydrogenNoAmmoniaTemp750WithCatalystNoProgress() { //Arrange DataPoint start = new DataPoint(0, 0, 10000, 750, 0, true); P2.AmmoniaModel m = new AmmoniaModel(start); //Act DataPoint update = m.Update(1); //Assert Assert.IsTrue((update.nAmmonia == start.nAmmonia) && (update.nHydrogen == start.nHydrogen) && (update.nNitrogen == start.nNitrogen)); }