public void CanHandleInt() { // Arrange var options = new Options {Maxlen = 42}; // Act var js = options.ToJS(); // Assert Assert.That(js, Is.StringContaining("maxlen:42")); }
public void NoOptionsIsGeneratedOnNullInt() { // Arrange var options = new Options {Maxlen = null}; // Act var js = options.ToJS(); // Assert Assert.That(js, Is.Not.StringContaining("maxlen:")); }
public void CanGenerateOptionsWithQuotationMarkTrue() { // Arrange var options = new Options { Quotmark = Options.QuotationMarks.True }; // Act var js = options.ToJS(); // Assert Assert.That(js, Is.StringContaining("quotmark:true")); }