public void PcPartRepairShouldWorksCorrectly() { var part = new PCPart("JustLaptopPart", 2.50M, true); part.Repair(); Assert.IsFalse(part.IsBroken); }
public void PCPartRepairShouldTurnIsBrokenToFalse() { var PCPart = new PCPart("ram", 100m, true); PCPart.Repair(); Assert.IsFalse(PCPart.IsBroken); }
public void TestRepairPCPartShouldFixBrokenPart() { IPart pcPart = new PCPart(PartName, PartCost); pcPart.Repair(); Assert.IsTrue(pcPart.IsBroken == false); }
public void TestIfRepairPartWorksCorrectly() { bool expectedResult = false; PCPart pcPart = new PCPart("VideoCard", 500m, true); pcPart.Repair(); Assert.AreEqual(expectedResult, pcPart.IsBroken); }