Esempio n. 1
0
        public void ValueObjectNewWhenParseEmptyNameIsValidFalse()
        {
            var sut = new ValueObjectFake("");

            Assert.AreEqual(false, sut.IsValid());
        }
Esempio n. 2
0
        public void ValueObjectNewWhenParseNameMaximumExceededIsValidFalse()
        {
            var sut = new ValueObjectFake("Name Name Name Name");

            Assert.AreEqual(false, sut.IsValid());
        }
Esempio n. 3
0
        public void ValueObjectNewWhenParseNameIsValidTrue()
        {
            var sut = new ValueObjectFake("Name");

            Assert.AreEqual(true, sut.IsValid());
        }
Esempio n. 4
0
        public void ValueObjectNewWhenParseNameInsufficientCharactersIsValidFalse()
        {
            var sut = new ValueObjectFake("N");

            Assert.AreEqual(false, sut.IsValid());
        }