public void BRZCanHonkHorn() { BRZ brz = new BRZ(); string actual = brz.Honk(); Assert.Equal("Honk honk!", actual); }
public void BRZCanBeFilledWith18GallonsOfGas() { BRZ brz = new BRZ(); int actual = brz.FillWithGas(); Assert.Equal(18, actual); }
public void BRZHasBrokenHorn() { BRZ brz = new BRZ { HasHorn = false }; Assert.False(brz.HasHorn); }
public void BRZCanSomehowMagicallyHaveBackSeatSpace() { BRZ brz = new BRZ { BackseatSpace = true }; Assert.True(brz.BackseatSpace); }
public void BRZCanCostEvenMore() { BRZ brz = new BRZ { Cost = 75000 }; Assert.Equal(75000, brz.Cost); }
public void BRZCanHave5Wheels() { BRZ brz = new BRZ { NumberOfWheels = 5 }; Assert.Equal(5, brz.NumberOfWheels); }
public void BRZCanHave4Doors() { BRZ brz = new BRZ { NumberOfDoors = 4 }; Assert.Equal(4, brz.NumberOfDoors); }
public void BRZIsNotGoingAnywhere() { BRZ brz = new BRZ { SelfPropelled = false }; Assert.False(brz.SelfPropelled); }
static void Main(string[] args) { Turcell turcell = new Turcell(); Camry camry = new Camry(); BRZ brz = new BRZ(); MountainBike mountainBike = new MountainBike(); Motorcycle motorcycle = new Motorcycle(); Console.WriteLine($"Class: {turcell}. Inherited Number of Wheels: {turcell.NumberOfWheels}\n" + ""); Console.WriteLine($"Class: {camry}. Inherited Number of Doors: {camry.NumberOfDoors}\n" + ""); Console.WriteLine($"Class: {brz}. Inherited Backseat Space: {brz.BackseatSpace}\n" + ""); Console.WriteLine($"Class: {motorcycle}. Inherited Number of Wheels: {motorcycle.NumberOfWheels}\n" + ""); Console.WriteLine($"Class: {mountainBike}. Inherited Self-Propelled: {mountainBike.SelfPropelled}\n" + ""); }
public void BRZHasHorn() { BRZ brz = new BRZ(); Assert.True(brz.HasHorn); }
public void BRZHasNoBackSeatSpace() { BRZ brz = new BRZ(); Assert.False(brz.BackseatSpace); }
public void BRZHasCorrectCost() { BRZ brz = new BRZ(); Assert.Equal(50000, brz.Cost); }
public void BRZHas4Wheels() { BRZ brz = new BRZ(); Assert.Equal(4, brz.NumberOfWheels); }
public void BRZIsSelfPropelled() { BRZ brz = new BRZ(); Assert.True(brz.SelfPropelled); }
public void BRZHas2Doors() { BRZ brz = new BRZ(); Assert.Equal(2, brz.NumberOfDoors); }