Ejemplo n.º 1
0
        public void ShouldAssignAllPropertiesFromConstructor()
        {
            PropertyItemValueMock value     = new PropertyItemValueMock();
            Exception             exception = new Exception();

            ValueExceptionEventArgs arguments = new ValueExceptionEventArgs("message", value, ValueExceptionSource.Get, exception);

            Assert.AreEqual <string>("message", arguments.Message);
            Assert.AreEqual <PropertyItemValue>(value, arguments.PropertyValue);
            Assert.AreEqual <ValueExceptionSource>(ValueExceptionSource.Get, arguments.Source);
            Assert.AreEqual <Exception>(exception, arguments.Exception);
        }
Ejemplo n.º 2
0
        public void ShouldAssignAllPropertiesFromConstructor()
        {
            PropertyItemValueMock value = new PropertyItemValueMock();
              Exception exception = new Exception();

              ValueExceptionEventArgs arguments = new ValueExceptionEventArgs("message", value, ValueExceptionSource.Get, exception);

              Assert.AreEqual<string>("message", arguments.Message);
              Assert.AreEqual<PropertyItemValue>(value, arguments.PropertyValue);
              Assert.AreEqual<ValueExceptionSource>(ValueExceptionSource.Get, arguments.Source);
              Assert.AreEqual<Exception>(exception, arguments.Exception);
        }