Пример #1
0
        public void BRZCanHonkHorn()
        {
            BRZ brz = new BRZ();

            string actual = brz.Honk();

            Assert.Equal("Honk honk!", actual);
        }
Пример #2
0
        public void BRZCanBeFilledWith18GallonsOfGas()
        {
            BRZ brz = new BRZ();

            int actual = brz.FillWithGas();

            Assert.Equal(18, actual);
        }
Пример #3
0
        public void BRZHasBrokenHorn()
        {
            BRZ brz = new BRZ
            {
                HasHorn = false
            };

            Assert.False(brz.HasHorn);
        }
Пример #4
0
        public void BRZCanSomehowMagicallyHaveBackSeatSpace()
        {
            BRZ brz = new BRZ
            {
                BackseatSpace = true
            };

            Assert.True(brz.BackseatSpace);
        }
Пример #5
0
        public void BRZCanCostEvenMore()
        {
            BRZ brz = new BRZ
            {
                Cost = 75000
            };

            Assert.Equal(75000, brz.Cost);
        }
Пример #6
0
        public void BRZCanHave5Wheels()
        {
            BRZ brz = new BRZ
            {
                NumberOfWheels = 5
            };

            Assert.Equal(5, brz.NumberOfWheels);
        }
Пример #7
0
        public void BRZCanHave4Doors()
        {
            BRZ brz = new BRZ
            {
                NumberOfDoors = 4
            };

            Assert.Equal(4, brz.NumberOfDoors);
        }
Пример #8
0
        public void BRZIsNotGoingAnywhere()
        {
            BRZ brz = new BRZ
            {
                SelfPropelled = false
            };

            Assert.False(brz.SelfPropelled);
        }
Пример #9
0
        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" +
                              "");
        }
Пример #10
0
        public void BRZHasHorn()
        {
            BRZ brz = new BRZ();

            Assert.True(brz.HasHorn);
        }
Пример #11
0
        public void BRZHasNoBackSeatSpace()
        {
            BRZ brz = new BRZ();

            Assert.False(brz.BackseatSpace);
        }
Пример #12
0
        public void BRZHasCorrectCost()
        {
            BRZ brz = new BRZ();

            Assert.Equal(50000, brz.Cost);
        }
Пример #13
0
        public void BRZHas4Wheels()
        {
            BRZ brz = new BRZ();

            Assert.Equal(4, brz.NumberOfWheels);
        }
Пример #14
0
        public void BRZIsSelfPropelled()
        {
            BRZ brz = new BRZ();

            Assert.True(brz.SelfPropelled);
        }
Пример #15
0
        public void BRZHas2Doors()
        {
            BRZ brz = new BRZ();

            Assert.Equal(2, brz.NumberOfDoors);
        }