Exemplo n.º 1
0
        public void Counstruct_ValidInstance_FullConstructor_Success()
        {
            SettingStringAttribute sut = new SettingStringAttribute(true, 19, 87);

            Assert.IsNotNull(sut);
            Assert.AreEqual(19u, sut.MinLength);
            Assert.AreEqual(87u, sut.MaxLength);
            Assert.IsTrue(sut.AllowNullOrEmpty);
        }
Exemplo n.º 2
0
        public void Counstruct_ValidInstance_MinMaxLengthConstructor_Success()
        {
            SettingStringAttribute sut = new SettingStringAttribute(15, 23);

            Assert.IsNotNull(sut);
            Assert.AreEqual(15u, sut.MinLength);
            Assert.AreEqual(23u, sut.MaxLength);
            Assert.IsFalse(sut.AllowNullOrEmpty);
        }