コード例 #1
0
		public void OverridablePropertyPartOfClass()
		{
			MockProperty property = new MockProperty("IsRunning");
			property.DeclaringType = c;
			property.IsOverridable = true;
			returnType.Properties.Add(property);
			
			IProperty[] properties = OverrideCompletionDataProvider.GetOverridableProperties(c);
			
			AssertArePropertiesEqual(expectedProperties, properties);
		}
コード例 #2
0
		public void OverridableConstPropertyNotReturned()
		{
			MockProperty property = new MockProperty("IsRunning");
			property.DeclaringType = declaringType;
			property.IsOverridable = true;
			property.IsConst = true;
			returnType.Properties.Add(property);
			
			IProperty[] properties = GetOverridableProperties(c);
			
			AssertArePropertiesEqual(expectedProperties, properties);
		}