Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #6
0
        public void CourseStudentIsAReadonlyProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

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

            test.AssertPublicReadonlyProperty <BankAccount, decimal>(b => b.Balance);
            test.Execute();
        }
Beispiel #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();
        }
Beispiel #10
0
        public void EmployeesIsPublicListEmployeeProperty()
        {
            // TestTools Code
            StructureTest test = Factory.CreateStructureTest();

            test.AssertPublicReadonlyProperty <Company, List <Employee> >(c => c.Employees);
            test.Execute();
        }
Beispiel #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();
        }