public void ClassesDerivedFromPureComponentMayHaveEmptyConstructors()
{
var testContent = @"
using Bridge.React;
namespace TestCase
{
public class LabelComponent : PureComponent<LabelComponent.Props>
{
private readonly int _otherValue;
public LabelComponent(Props props, int otherValue) : base(props)
{
}
public override ReactElement Render()
{
return DOM.Label(
new LabelAttributes { ClassName = props.ClassName },
props.Text + "" ("" + _otherValue + "")""
);
}
public class Props
{
public string ClassName;
public string Text;
}
}
}";
VerifyCSharpDiagnostic(testContent);
}