Example #1
0
		internal TestType(FormsLoader formsLoader, Type type)
		{
			FormsLoader = formsLoader;
			Type = type;

			_members =
				from o in Type.GetMethods()
				where !o.IsSetupOrTearDown() && !o.IsEqualityOverride() && !o.IsToStringOverride()
				select new TestMember(this, o);

			_categories = type.GetCustomAttributes<CategoryAttribute>();
		}
Example #2
0
        internal TestType(FormsLoader formsLoader, Type type)
        {
            FormsLoader = formsLoader;
            Type        = type;

            _members =
                from o in Type.GetMethods()
                where !o.IsSetupOrTearDown() && !o.IsEqualityOverride() && !o.IsToStringOverride()
                select new TestMember(this, o);

            _categories = type.GetCustomAttributes <CategoryAttribute>();
        }
Example #3
0
		public LoaderActions()
		{
			var formsLoader = new FormsLoader();
			FormsTypes = formsLoader.FormsTypes();
			_iOsTestTypes = formsLoader.IOSTestTypes();
			_androidTestTypes = formsLoader.AndroidTestTypes();

			TypeiOsuiTestDictionary = BuildTypeUiTestDictionary(_iOsTestTypes);
			TypeAndroidUiTestDictionary = BuildTypeUiTestDictionary(_androidTestTypes);

			Debug.WriteLine("HI");
		}
Example #4
0
		public LoaderActions()
		{
			var formsLoader = new FormsLoader();

			var categoriesOnTypes =
				from type in formsLoader.IOSTestTypes()
				from categoryAttribute in type.Categories()
				select categoryAttribute.Name;

			var categoriesOnMembers =
				from type in formsLoader.IOSTestTypes()
				from members in type.Members()
				from categoryAttribute in members.CategoryAttributes()
				select categoryAttribute.Name;

			_testCategories = categoriesOnTypes.Union(categoriesOnMembers);
		}
Example #5
0
        internal FormsType(FormsLoader formsLoader, Type type)
        {
            FormsLoader = formsLoader;
            Type        = type;

            const BindingFlags bindingFlags = BindingFlags.DeclaredOnly |
                                              BindingFlags.Public |
                                              BindingFlags.Instance |
                                              BindingFlags.Static;

            const MemberTypes memberTypes = MemberTypes.Event |
                                            MemberTypes.Method |
                                            MemberTypes.Property;

            formsMembers =
                from o in Type.GetMember("*", memberTypes, bindingFlags)
                where
                o.IsPublic() &&
                !o.IsCompilerGenerated() &&
                !o.IsEqualityOverride() &&
                !o.IsToStringOverride() &&
                !LoaderExtensions.IsUnitTested(type, o)
                select new FormsMember(this, o);
        }
Example #6
0
		internal FormsType(FormsLoader formsLoader, Type type)
		{
			FormsLoader = formsLoader;
			Type = type;

			const BindingFlags bindingFlags = BindingFlags.DeclaredOnly |
			                                  BindingFlags.Public |
			                                  BindingFlags.Instance |
			                                  BindingFlags.Static;

			const MemberTypes memberTypes = MemberTypes.Event |
			                                MemberTypes.Method |
			                                MemberTypes.Property;

			formsMembers =
				from o in Type.GetMember("*", memberTypes, bindingFlags)
				where
					o.IsPublic() &&
					!o.IsCompilerGenerated() &&
					!o.IsEqualityOverride() &&
					!o.IsToStringOverride() &&
					!LoaderExtensions.IsUnitTested(type, o)
				select new FormsMember(this, o);
		}