public static void AreEqual(SimpleObject expected, SimpleObject actual) { Assert.AreNotEqual(expected, actual); Assert.AreEqual(expected.MyBool, actual.MyBool); Assert.AreEqual(expected.MyByte, actual.MyByte); Assert.AreEqual(expected.MyChar, actual.MyChar); Assert.AreEqual(expected.MyDateTime, actual.MyDateTime); Assert.AreEqual(expected.MyDouble, actual.MyDouble); //[verify error with Guid, see case: 1306000763] Assert.AreEqual(expected.MyGuid, actual.MyGuid); Assert.AreEqual(expected.MyInt16, actual.MyInt16); Assert.AreEqual(expected.MyInt32, actual.MyInt32); Assert.AreEqual(expected.MyInt64, actual.MyInt64); Assert.AreEqual(expected.MySByte, actual.MySByte); Assert.AreEqual(expected.MySingle, actual.MySingle); Assert.AreEqual(expected.MyString, actual.MyString); Assert.AreEqual(expected.MyTimeSpan, actual.MyTimeSpan); Assert.AreEqual(expected.MyUInt16, actual.MyUInt16); Assert.AreEqual(expected.MyUInt32, actual.MyUInt32); Assert.AreEqual(expected.MyUInt64, actual.MyUInt64); }
public SimpleObject UpdateSimpleObject(SimpleObject simpleObject) { SetHttpStatus(HttpStatusCode.OK, "OK"); return simpleObject; }
public static void AreEqual(SimpleObject[] expected, SimpleObject[] actual) { Assert.AreEqual(expected.Length, actual.Length); for (var i = 0; i < expected.Length; i++) { AreEqual(expected[i], actual[i]); } }
public void CreateSimpleObject(SimpleObject simpleObject) { SetHttpStatus(HttpStatusCode.OK, "OK"); }