Esempio n. 1
0
        public void TestThat_ValidationFailsIfOrderOfConstructorArgumentsIsWrong()
        {
            var op           = new MyRemoteOpWithWrongConstructorOrder("hello!", new ComplexObj());
            var notification = new Notification();

            Assert.That(op.IsValid(notification), Is.False);
            Assert.That(notification.HasErrors, Is.True);
        }
 public void TestThat_ValidationFailsIfOrderOfConstructorArgumentsIsWrong()
 {
     var op = new MyRemoteOpWithWrongConstructorOrder("hello!", new ComplexObj());
     var notification = new Notification();
     Assert.That(op.IsValid(notification), Is.False);
     Assert.That(notification.HasErrors, Is.True);
 }