public void Equals_OtherNonElementCommandIsSameObject_ReturnsTrue() { var nonElementCommand = new NonElementCommand("command", "#selector"); var result = nonElementCommand.Equals(nonElementCommand); result.Should().BeTrue(); }
public void Equals_OtherNonElementCommandIsNull_ReturnsFalse() { var nonElementCommand = new NonElementCommand("command", "#selector"); ElementCommand other = null; var result = nonElementCommand.Equals(other); result.Should().BeFalse(); }
public void Equals_OtherObjectIsNotANonElementCommand_ReturnsFalse() { var other = new object(); var elementCommand = new NonElementCommand("command", "#selector"); var result = elementCommand.Equals(other); result.Should().BeFalse(); }
public void Equals_OtherNonElementCommandHasDifferentProperties_ReturnsFalse( string command0, string selector0, object[] args0, string command1, string selector1, object[] args1) { var nonElementCommand0 = new NonElementCommand(command0, selector0, args0); var nonElementCommand1 = new NonElementCommand(command1, selector1, args1); var result = nonElementCommand0.Equals(nonElementCommand1); result.Should().BeFalse(); }