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); }
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); }