ValueEquals() public method

This method checks whether the values of all properties of the given object are the same as the properties of this object. The given object may be of any type, so the method checks whether it is of type TimeSeriesValue (if not, it returns false).
public ValueEquals ( Object obj ) : System.Boolean
obj Object the object to compare to this object
return System.Boolean
        public void ConvertFromStruct2()
        {
            TSDateValueStruct tsdvs = new TSDateValueStruct { Date = date2, Value = val2 };
            TimeSeriesValue tsv = new TimeSeriesValue { Date = date2, Value = val2 };

            TimeSeriesValue actual = ((TimeSeriesValue)(tsdvs));
            Assert.IsTrue(tsv.ValueEquals(actual));
        }
        public void ValueEqualsTrueTest()
        {
            TimeSeriesValue tsv1 = new TimeSeriesValue { Date = date1, Value = val1 };
            TimeSeriesValue tsv2 = new TimeSeriesValue { Date = date1, Value = val1 };

            Assert.IsTrue(tsv1.ValueEquals(tsv2));
        }