Esempio n. 1
0
        public void LoggerLogsIsAPublicListProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Logger, List <string> >(l => l.Logs);
            test.Execute();
        }
        public void RadiusIsPublicDoubleProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Circle, double>(c => c.Radius);
            test.Execute();
        }
Esempio n. 3
0
        public void TestFileContentIsPublicReadOnlyString()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <TextFile, string>(t => t.Content);
            test.Execute();
        }
        public void P2IsPublicPointProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Rectangle, Point>(r => r.P2);
            test.Execute();
        }
        public void CenterIsPublicPointProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Circle, Point>(c => c.Center);
            test.Execute();
        }
Esempio n. 6
0
        public void CourseStudentIsAReadonlyProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Course, IEnumerable <Student> >(c => c.Students);
            test.Execute();
        }
Esempio n. 7
0
        public void BankAccountBalanceIsDecimalProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <BankAccount, decimal>(b => b.Balance);
            test.Execute();
        }
Esempio n. 8
0
        public void MyQueueCountIsReadOnlyIntProoerty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <MyQueue <int>, int>(q => q.Count);
            test.Execute();
        }
        public void ValueIsPublicReadonlyProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <ImmutableNumber, int>(n => n.Value);
            test.Execute();
        }
Esempio n. 10
0
        public void EmployeesIsPublicListEmployeeProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Company, List <Employee> >(c => c.Employees);
            test.Execute();
        }
Esempio n. 11
0
        public void NameIsPublicStringProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Employee, string>(e => e.Name);
            test.Execute();
        }
        public void IDIsPublicReadonlyIntProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Person, int>(p => p.ID);
            test.Execute();
        }
        public void PersonNameIsReadonlyStringProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Person, string>(p => p.Name);
            test.Execute();
        }
        public void SortedCollectionIsAReadonlyProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty(GetIndexProperty <SortedCollection <int> >());
            test.Execute();
        }