public void AboutObjectsCanCreateAPianoWithProperties() { Piano knabe = new Piano() { NumberOfKeys = 88, Brand = "Knabe", Acoustic = true, Material = "Mahogany", Cost = 321.76 }; Assert.AreEqual(FILL_ME_IN, knabe.NumberOfKeys); Assert.AreEqual(FILL_ME_IN, knabe.Brand); Assert.AreEqual(FILL_ME_IN, knabe.Acoustic); Assert.AreEqual(FILL_ME_IN, knabe.Material); Assert.AreEqual(FILL_ME_IN, knabe.Cost); }
public void AboutObjectsCanDefinePropertiesAfterInitialized() { Piano steinway = new Piano(); steinway.NumberOfKeys = 85; steinway.Brand = "Steinway"; steinway.Acoustic = false; steinway.Material = "Walnut"; steinway.Cost = 1299.99; Assert.AreEqual(FILL_ME_IN, steinway.NumberOfKeys); Assert.AreEqual(FILL_ME_IN, steinway.Brand); Assert.AreEqual(FILL_ME_IN, steinway.Acoustic); Assert.AreEqual(FILL_ME_IN, steinway.Material); Assert.AreEqual(FILL_ME_IN, steinway.Cost); }
public void AboutObjectsCanCreateAPiano() { Piano steinway = new Piano(); Assert.IsNotNull(null); //Change null to make this test pass }