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); }
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); }