public void When_AutoPropReceivedsAPropertyWithoutAHyphen_Then_PropertyIsMappedToTheCorrectVariable() { const string text = "lll"; var model = new ButtonModel(); var values = new Dictionary <string, string> { { "text", text } }; model.SetProps(values); model.Text.Should().Be(text); }
public void When_AutoPropReceivesAPropertyWithHyphen_Then_PropertyIsMappedToTheCorrectVariable() { const string additionalClass = "lll"; var model = new ButtonModel(); var values = new Dictionary <string, string> { { "additional-class", additionalClass } }; model.SetProps(values); model.AdditionalClass.Should().Be(additionalClass); }