public void Provided_Improper_Type_Object_Should_Return_False() { Feet first_value = new Feet(); object second_value = new object(); Assert.IsFalse(first_value.Equals(second_value)); }
public void Reference_Check_Test_For_Feet() { Feet first_value = new Feet(); Feet second_value = new Feet(); Assert.IsFalse(first_value.Equals(second_value)); }
public void Provided_Equal_Value_Shuold_Return_True() { Feet first_value = new Feet(); first_value.ValueInFeet = 4.6; Assert.IsTrue(first_value.Equals(first_value)); }
public void Provided_ZeroFeet_And_NullValue_Shuold_Return_False() { Feet feet = new Feet(); Assert.IsFalse(feet.Equals(null)); }
public override bool Equals(object obj) { var other = obj as DirectedDistance; return(other != null && Feet.Equals(other.Feet)); }