public void Test_MaxLength_VstConnectionInfo_ShortLabel() { VstConnectionInfo ci = new VstConnectionInfo(); Assert.AreEqual(null, ci.ShortLabel); ci.ShortLabel = String.Empty; Assert.AreEqual(String.Empty, ci.ShortLabel); string testData = CreateString(Constants.MaxShortLabelLength); ci.ShortLabel = testData; Assert.AreEqual(testData, ci.ShortLabel); testData += "X"; ci.ShortLabel = testData; Assert.Fail("should have thrown an exception."); }
public void Test_MaxLength_VstConnectionInfo_ShortLabel() { var ci = new VstConnectionInfo(); ci.ShortLabel.Should().BeEmpty(); ci.ShortLabel = String.Empty; ci.ShortLabel.Should().BeEmpty(); var testData = CreateString(Constants.MaxShortLabelLength); ci.ShortLabel = testData; ci.ShortLabel.Should().Be(testData); testData += "X"; ci.ShortLabel = testData; Assert.Fail("should have thrown an exception."); }