public void Equals_ReturnsFalse_IfThe2InstancesAreNotEqual() { //Arrange var firstName = new RequesterName("hamdy", "ahmed", "abdulgalil", "abdulfatah"); var secondName = new RequesterName("hamdy", "sssss", "abdulgalil", "abdulfatah"); //Act var result = firstName == secondName; //Assert Assert.False(result); }
public void Equals_ReturnsFalse_IfOneInstanceIsNull() { //Arrange var firstName = new RequesterName("hamdy", "ahmed", "abdulgalil", "abdulfatah"); RequesterName secondName = null; //Act var result = firstName == secondName; //Assert Assert.False(result); }
public void RequesterName_ReturnsCorrectFullName_IfValid() { //Arrange var fullName = "Hamdy Ahmed AbdulGalil AbdulFatah"; var requesterName = new RequesterName("Hamdy", "Ahmed", "AbdulGalil", "AbdulFatah"); //Act var actualFullName = requesterName.FullName; //Assert Assert.Equal(fullName, actualFullName); }