Exemple #1
0
        public void Component_ToString_ReturnsExpectedValue()
        {
            String cpuName = "i7 3k07K";
            int cpuPrice = 300;
            String expectedOutput = "$" + cpuPrice + "\t" + cpuName;

            Component cpu = new CPU(cpuName, cpuPrice);
            String actualOutput = cpu.ToString();

            Assert.AreEqual(actualOutput, expectedOutput);
        }
 public CPU makeCPU()
 {
     CPU cpu = new CPU("Quad Core 3.8 GHz", 450);
     return cpu;
 }
 public CPU makeCPU()
 {
     CPU cpu = new CPU("Dual Core 2.2 GHz", 250);
     return cpu;
 }
 public CPU makeCPU()
 {
     CPU cpu = new CPU("Intel Core i5 2.2GHz", 210);
     return cpu;
 }