Beispiel #1
0
        public void StudentLastNameIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Student, string>(s => s.LastName);
            test.Execute();
        }
        public void CarModelIsPublicReadOnlyStringProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Car, string>(c => c.Model);
            test.Execute();
        }
        public void CarPriceIsPublicDecimalReadOnlyProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Car, decimal>(c => c.Price);
            test.Execute();
        }
        public void StudentAgeIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Product, decimal>(s => s.Price);
            test.Execute();
        }
Beispiel #5
0
        public void CarListSorterComparerIsPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <CarSorter, IComparer <Car> >(c => c.Comparer);
            test.Execute();
        }
Beispiel #6
0
        public void CustomerIDIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Customer, int>(c => c.ID);
            test.Execute();
        }
        public void ProductIDISAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Product, int>(s => s.ID);
            test.Execute();
        }
Beispiel #8
0
        public void DogAgeIsPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Dog, int>(d => d.Age);
            test.Execute();
        }
Beispiel #9
0
        public void TitleIsPublicStringProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Employee, string>(e => e.Title);
            test.Execute();
        }
        public void AgeIsPublicIntProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Person, int>(p => p.Age);
            test.Execute();
        }
Beispiel #11
0
        public void DogBreedIsPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Dog, string>(d => d.Breed);
            test.Execute();
        }
        public void LastNameIsPublicStringProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Person, string>(p => p.LastName);
            test.Execute();
        }
        public void FatherIsPublicPersonProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Person, Person>(p => p.Father);
            test.Execute();
        }
        public void PersonWeightIsPublicDoubleProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Person, double>(p => p.Weight);
            test.Execute();
        }
Beispiel #15
0
        public void StudentAgeIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Student, int>(s => s.Age);
            test.Execute();
        }
Beispiel #16
0
        public void BonusIsPublicDecimalProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Manager, decimal>(e => e.Bonus);
            test.Execute();
        }
Beispiel #17
0
        public void BankAccountSavingsRateIsPublicDecimalProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <BankAccount, decimal>(b => b.SavingsRate);
            test.Execute();
        }
Beispiel #18
0
        public void MonthlySalaryIsPublicDecimalProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Employee, decimal>(e => e.MonthlySalary);
            test.Execute();
        }
Beispiel #19
0
        public void CustomerLastNameIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Customer, string>(c => c.LastName);
            test.Execute();
        }
Beispiel #20
0
        public void SeniorityIsPublicIntProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Employee, int>(e => e.Seniority);
            test.Execute();
        }
        public void ProductCategoryIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Product, string>(s => s.Category);
            test.Execute();
        }
        public void CarIDIsPublicReadOnlyIntProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Car, int>(c => c.ID);
            test.Execute();
        }
Beispiel #23
0
        public void TemperatureKelvinIsPublicDoubleProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <Temperature, double>(t => t.Kelvin);
            test.Execute();
        }
Beispiel #24
0
        public void BankAccountHighBalanceThresholdsIsAPublicProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicProperty <BankAccount, decimal>(b => b.HighBalanceThreshold);
            test.Execute();
        }