Пример #1
0
            public static void AreEqual(ComplexObject expected, ComplexObject actual)
            {
                Assert.AreNotEqual(expected, actual);

                Assert.AreEqual(expected.MultipleBool, actual.MultipleBool);
                Assert.AreEqual(expected.MultipleByte, actual.MultipleByte);
                Assert.AreEqual(expected.MultipleChar, actual.MultipleChar);
                Assert.AreEqual(expected.MultipleDateTime, actual.MultipleDateTime); 
                Assert.AreEqual(expected.MultipleDouble, actual.MultipleDouble);
                //[verify error with Guid, see case: 1306000763] Assert.AreEqual(expected.MultipleGuid, actual.MultipleGuid);
                Assert.AreEqual(expected.MultipleInt16, actual.MultipleInt16);
                Assert.AreEqual(expected.MultipleInt32, actual.MultipleInt32);
                Assert.AreEqual(expected.MultipleInt64, actual.MultipleInt64); 
                Assert.AreEqual(expected.MultipleSByte, actual.MultipleSByte);
                Assert.AreEqual(expected.MultipleSingle, actual.MultipleSingle);
                Assert.AreEqual(expected.MultipleString, actual.MultipleString);
                Assert.AreEqual(expected.MultipleTimeSpan, actual.MultipleTimeSpan);
                Assert.AreEqual(expected.MultipleUInt16, actual.MultipleUInt16);
                Assert.AreEqual(expected.MultipleUInt32, actual.MultipleUInt32);
                Assert.AreEqual(expected.MultipleUInt64, actual.MultipleUInt64);
             
                AreEqual(expected.MultipleSimpleObjects, actual.MultipleSimpleObjects);
                Assert.AreEqual(expected.MyInt, actual.MyInt);
                AreEqual(expected.SimpleObject, actual.SimpleObject);
            }
Пример #2
0
            public static void AreEqual(ComplexObject[] expected, ComplexObject[] actual)
            {
                Assert.AreEqual(expected.Length, actual.Length);

                for (var i = 0; i < expected.Length; i++)
                {
                    AreEqual(expected[i], actual[i]);
                }
            }
Пример #3
0
 public void CreateComplexObjects(ComplexObject[] complexObjects)
 {
     SetHttpStatus(HttpStatusCode.OK, "OK");
 }
Пример #4
0
 public ComplexObject[] UpdateComplexObjects(ComplexObject[] complexObjects)
 {
     SetHttpStatus(HttpStatusCode.OK, "OK");
     return complexObjects;
 }
Пример #5
0
 public ComplexObject UpdateComplexObject(ComplexObject complexObject)
 {
     SetHttpStatus(HttpStatusCode.OK, "OK");
     return complexObject;
 }