Esempio n. 1
0
        public void TestValidateClassThrowsContractException()
        {
            var sut = new BaseDtoImplementation1
            {
                RequiredStringProperty1 = "arbitrary-value"
            };

            sut.Validate("RequiredStringProperty2");
        }
Esempio n. 2
0
        public void TestValidateSinglePropertySucceeds()
        {
            var sut = new BaseDtoImplementation1
            {
                RequiredStringProperty1 = "arbitrary-value"
            };

            sut.Validate("RequiredStringProperty1");
        }