public void CannaOilCreation_MasterKushWash_MasterKushInWashingStage() { IChronic GanjaTest = new MasterKush(); IContainer MasonJar = new SmallMasonJar(); IChemical Butane = new Benzene(1500); IContainer Trousers = new CargoPants(); IFilter CoffeeFilter = new CoffeeFilter(); Trousers.Add((IItem)MasonJar); Trousers.Add(Butane); for (int i = 0; i < GanjaTest.SeedingAge; i++) { GanjaTest.Grow(Water.Low, Light.None, Food.None); } for (int i = 0; i < GanjaTest.FloweringAge; i++) { GanjaTest.Grow(Water.Low, Light.Spring, Food.None); } for (int i = 0; i < 25; i++) { GanjaTest.Grow(Water.Medium, Light.Summer, Food.None); } var fullHarvest = GanjaTest.Harvest(); var clone = GanjaTest; var harvest = fullHarvest.Harvest; var trimmings = fullHarvest.Trimmings; for (int i = 0; i < harvest.DryingAge; i++) { harvest.Dry(); } for (int i = 0; i < trimmings.DryingAge; i++) { trimmings.Dry(); } harvest.Add(ref trimmings); ISolventMix firstSolventMix = new SolventMix(harvest, Butane); MasonJar.Add((IItem)firstSolventMix); firstSolventMix.Wash(); var firstFilteredBatch = firstSolventMix.Filter(new CoffeeFilter()); firstSolventMix.Print(); var firstFilteredRemainingChronic = firstFilteredBatch.Chronic; firstFilteredRemainingChronic.Print(); var firstFilteredSolvent = firstFilteredBatch.Solvent; Assert.IsInstanceOfType(firstSolventMix, typeof(ISolventMix)); }
static void Main(string[] args) { IChronic GanjaTest = new SilverHaze(); IContainer MasonJar = new SmallMasonJar(); IChemical Butane = new Benzene(1000); IContainer Trousers = new CargoPants(); IFilter CoffeeFilter = new CoffeeFilter(); Trousers.Add((IItem)MasonJar); Trousers.Add(Butane); for (int i = 0; i < GanjaTest.SeedingAge; i++) { PrintLine(); GanjaTest.Grow(Water.Low, Light.None, Food.None); GanjaTest.Print(); Console.WriteLine(); } for (int i = 0; i < GanjaTest.FloweringAge; i++) { PrintLine(); GanjaTest.Grow(Water.Medium, Light.Spring, Food.Low); GanjaTest.Print(); Console.WriteLine(); } for (int i = 0; i < 30; i++) { PrintLine(); GanjaTest.Grow(Water.High, Light.Summer, Food.Low); GanjaTest.Print(); Console.WriteLine(); } var fullHarvest = GanjaTest.Harvest(); var clone = GanjaTest; var harvest = fullHarvest.Harvest; var trimmings = fullHarvest.Trimmings; for (int i = 0; i < harvest.DryingAge; i++) { PrintLine(); harvest.Dry(); harvest.Print(); Console.WriteLine(); } for (int i = 0; i < trimmings.DryingAge; i++) { PrintLine(); trimmings.Dry(); trimmings.Print(); Console.WriteLine(); } PrintLine(); harvest.Add(ref trimmings); ISolventMix firstSolventMix = new SolventMix(harvest, Butane); MasonJar.Add((IItem)firstSolventMix); firstSolventMix.Wash(); var firstFilteredBatch = firstSolventMix.Filter(new CoffeeFilter()); firstSolventMix.Print(); var firstFilteredRemainingChronic = firstFilteredBatch.Chronic; firstFilteredRemainingChronic.Print(); var firstFilteredSolvent = firstFilteredBatch.Solvent; firstFilteredSolvent.Print(); PrintLine(); ISolventMix secondSolventMix = new SolventMix(firstFilteredRemainingChronic, new Benzene(1000)); secondSolventMix.Wash(2); PrintLine(); var secondFilteredSolvent = secondSolventMix.Filter(new CoffeeFilter()).Solvent; firstFilteredSolvent.Add(secondFilteredSolvent); for (int i = 0; i < 12; i++) { firstFilteredSolvent.Heat(); } ICannaOil cannaOil = new CannaOil(firstFilteredSolvent, GanjaTest.Name); firstFilteredSolvent.Print(); secondFilteredSolvent.Print(); Console.WriteLine(); Console.ReadLine(); }
public void CannaOilCreation_SilverHazetoAddCannaOilTest_CannaOilv2YieldIsZero() { IChronic GanjaTest = new SilverHaze(); IContainer MasonJar = new SmallMasonJar(); IChemical Butane = new Benzene(900); IContainer Trousers = new CargoPants(); IFilter CoffeeFilter = new CoffeeFilter(); Trousers.Add((IItem)MasonJar); Trousers.Add(Butane); for (int i = 0; i < GanjaTest.SeedingAge; i++) { GanjaTest.Grow(Water.Low, Light.None, Food.None); } for (int i = 0; i < GanjaTest.FloweringAge; i++) { GanjaTest.Grow(Water.Medium, Light.Spring, Food.Low); } for (int i = 0; i < 25; i++) { GanjaTest.Grow(Water.High, Light.Summer, Food.Low); } var fullHarvest = GanjaTest.Harvest(); var clone = GanjaTest; var harvest = fullHarvest.Harvest; var trimmings = fullHarvest.Trimmings; for (int i = 0; i < harvest.DryingAge; i++) { harvest.Dry(); } for (int i = 0; i < trimmings.DryingAge; i++) { trimmings.Dry(); } harvest.Add(ref trimmings); ISolventMix firstSolventMix = new SolventMix(harvest, Butane); MasonJar.Add((IItem)firstSolventMix); firstSolventMix.Wash(); var firstFilteredBatch = firstSolventMix.Filter(new CoffeeFilter()); firstSolventMix.Print(); var firstFilteredRemainingChronic = firstFilteredBatch.Chronic; firstFilteredRemainingChronic.Print(); var firstFilteredSolvent = firstFilteredBatch.Solvent; firstFilteredSolvent.Print(); ISolventMix secondSolventMix = new SolventMix(firstFilteredRemainingChronic, new Benzene(900)); secondSolventMix.Wash(2); var secondFilteredSolvent = secondSolventMix.Filter(new CoffeeFilter()).Solvent; for (int i = 0; i < 12; i++) { firstFilteredSolvent.Heat(); secondFilteredSolvent.Heat(); } ICannaOil cannaOil = new CannaOil(firstFilteredSolvent, GanjaTest.Name); ICannaOil cannaOilv2 = new CannaOil(secondFilteredSolvent, GanjaTest.Name); cannaOil.Add(cannaOilv2); Assert.IsTrue(cannaOilv2.Yield == 0); }
public void CannaOilCreation_MasterKushHeatSolvent_ContentsAreZero() { IChronic GanjaTest = new MasterKush(); IContainer MasonJar = new SmallMasonJar(); // Needs extra chemical for test to pass. IChemical Benzene = new Benzene(1300); IContainer Trousers = new CargoPants(); IFilter CoffeeFilter = new CoffeeFilter(); Trousers.Add((IItem)MasonJar); Trousers.Add(Benzene); for (int i = 0; i < GanjaTest.SeedingAge; i++) { GanjaTest.Grow(Water.Low, Light.None, Food.None); } for (int i = 0; i < GanjaTest.FloweringAge; i++) { GanjaTest.Grow(Water.Low, Light.Spring, Food.None); } for (int i = 0; i < 25; i++) { GanjaTest.Grow(Water.Medium, Light.Summer, Food.None); } var fullHarvest = GanjaTest.Harvest(); var clone = GanjaTest; var harvest = fullHarvest.Harvest; var trimmings = fullHarvest.Trimmings; for (int i = 0; i < harvest.DryingAge; i++) { harvest.Dry(); trimmings.Dry(); } harvest.Add(ref trimmings); ISolventMix firstSolventMix = new SolventMix(harvest, Benzene); MasonJar.Add((IItem)firstSolventMix); firstSolventMix.Wash(); var firstFilteredBatch = firstSolventMix.Filter(new CoffeeFilter()); firstSolventMix.Print(); var firstFilteredRemainingChronic = firstFilteredBatch.Chronic; firstFilteredRemainingChronic.Print(); var firstFilteredSolvent = firstFilteredBatch.Solvent; firstFilteredSolvent.Print(); // Again needs extra chemical to pass test. ISolventMix secondSolventMix = new SolventMix(firstFilteredRemainingChronic, new Benzene(1300)); secondSolventMix.Wash(2); var secondFilteredSolvent = secondSolventMix.Filter(new CoffeeFilter()).Solvent; for (int i = 0; i < 15; i++) { firstFilteredSolvent.Heat(); secondFilteredSolvent.Heat(); } ICannaOil cannaOil = new CannaOil(firstFilteredSolvent, GanjaTest.Name); Assert.IsTrue(firstFilteredSolvent.Contents == 0); Assert.IsTrue(secondFilteredSolvent.Contents == 0); }