public void IsEqual_WhenArgumentIsProperty_Throws() { // Arrange var obj = new PropertyTest(); // Act/Assert var exception = GetException <NotExpectedException <int> >(() => obj.RunGuard()); // Assert AssertNotExpectedException(exception, "Prop", obj.Prop, 1); }
public void IsEqual_WhenArgumentIsProperty_Throws() { // Arrange var obj = new PropertyTest(); // Act/Assert ArgumentOutOfRangeException exception = GetException <ArgumentOutOfRangeException>(() => obj.RunGuard()); // Assert AssertArgumentNotEqualException(exception, "Prop", obj.Prop, 1); }
public void IsEqual_WhenArgumentIsProperty_Throws() { // Arrange var obj = new PropertyTest(); // Act/Assert ArgumentException exception = GetException <ArgumentException>(() => obj.RunGuard()); // Assert AssertArgumentException(exception, "Prop", "Specified argument was out of the range of valid values.\r\nParameter name: Prop"); }
public void IsEqual_WhenArgumentIsProperty_Throws() { // Arrange var obj = new PropertyTest(); // Act/Assert ArgumentException exception = GetException<ArgumentException>(() => obj.RunGuard()); // Assert AssertArgumentException(exception, "Prop", "Specified argument was out of the range of valid values.\r\nParameter name: Prop"); }
public void IsEqual_WhenArgumentIsProperty_Throws() { // Arrange var obj = new PropertyTest(); // Act/Assert ArgumentOutOfRangeException exception = GetException<ArgumentOutOfRangeException>(() => obj.RunGuard()); // Assert AssertArgumentNotEqualException(exception, "Prop", obj.Prop, 1); }