public void StandardPattern_Calculates_Correctly_With_36_By_36_Room()
        {
            IPattern standardPattern = new StandardPattern();

            CalculatorResult result = standardPattern.Calculate(new Room(36, 36), new Tile(12, 12), .25);

            Assert.AreEqual(9, result.WholeTilesUsed);
            Assert.AreEqual(6, result.TotalCuts);
            Assert.AreEqual(.03, result.WastePercentage);
        }
Exemple #2
0
 public void Can_Get_Name_From_StandardPattern()
 {
     var pattern = new StandardPattern();
     Assert.AreEqual("Standard Pattern", pattern.Name);
 }