Beispiel #1
0
        protected bool Equals(AllTestRecord other)
        {
            bool arrayEqual = _arrayTest.SequenceEqual(other._arrayTest);
            bool mapEqual = _mapTest.SequenceEqual(other._mapTest);
            bool bytesEqual = _bytesTest.SequenceEqual(other._bytesTest);

            return Equals(_nestedTest, other._nestedTest) && mapEqual &&
                   arrayEqual
                 && Equals(_fixedTest, other._fixedTest) &&
                   _enumTest == other._enumTest && string.Equals(_stringTest, other._stringTest) &&
                   bytesEqual && _doubleTest.Equals(other._doubleTest) &&
                   _floatTest.Equals(other._floatTest) && _longTest == other._longTest && _intTest == other._intTest &&
                   _booleanTest.Equals(other._booleanTest);
        }
Beispiel #2
0
        protected bool Equals(AllTestRecord other)
        {
            bool arrayEqual = _arrayTest.SequenceEqual(other._arrayTest);
            bool mapEqual   = _mapTest.SequenceEqual(other._mapTest);
            bool bytesEqual = _bytesTest.SequenceEqual(other._bytesTest);

            return(Equals(_nestedTest, other._nestedTest) && mapEqual &&
                   arrayEqual &&
                   Equals(_fixedTest, other._fixedTest) &&
                   _enumTest == other._enumTest && string.Equals(_stringTest, other._stringTest) &&
                   bytesEqual && _doubleTest.Equals(other._doubleTest) &&
                   _floatTest.Equals(other._floatTest) && _longTest == other._longTest && _intTest == other._intTest &&
                   _booleanTest.Equals(other._booleanTest));
        }
Beispiel #3
0
 public override AllTestRecord echoParameters(bool booleanTest, int intTest, long longTest, float floatTest, double doubleTest,
     byte[] bytesTest, string stringTest, AllEnum enumTest, FixedTest fixedTest, IList<long> arrayTest,
     IDictionary<string, long> mapTest, AllTestRecord nestedTest)
 {
     return new AllTestRecord
                {
                    stringTest = stringTest,
                    booleanTest = booleanTest,
                    intTest = intTest,
                    arrayTest = arrayTest,
                    bytesTest = bytesTest,
                    doubleTest = doubleTest,
                    enumTest = enumTest,
                    fixedTest = fixedTest,
                    floatTest = floatTest,
                    longTest = longTest,
                    mapTest = mapTest,
                    nestedTest = nestedTest
                };
 }
Beispiel #4
0
 public override AllTestRecord echo(AllTestRecord allTest)
 {
     return allTest;
 }