public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = WeekDateTest.TestStruct; var exp = WeekDateTest.TestStruct; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = GetTestInstance(); var exp = GetTestInstance(); var act = SerializationTest.DataContractSerializeDeserialize(input); CollectionAssert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = LocalDateTimeTest.TestStructNoMilliseconds; var exp = LocalDateTimeTest.TestStructNoMilliseconds; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = InternationalBankAccountNumberTest.TestStruct; var exp = InternationalBankAccountNumberTest.TestStruct; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = CryptographicSeedTest.TestStruct; var exp = CryptographicSeedTest.TestStruct; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = InternetMediaTypeTest.TestStruct; var exp = InternetMediaTypeTest.TestStruct; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var input = BankIdentifierCodeTest.TestStruct; var exp = BankIdentifierCodeTest.TestStruct; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp, act); }
public void DataContractSerializeDeserialize_WeekDateSerializeObject_AreEqual() { var input = new WeekDateSerializeObject() { Id = 17, Obj = WeekDateTest.TestStruct, Date = new DateTime(1970, 02, 14), }; var exp = new WeekDateSerializeObject() { Id = 17, Obj = WeekDateTest.TestStruct, Date = new DateTime(1970, 02, 14), }; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp.Id, act.Id, "Id"); Assert.AreEqual(exp.Obj, act.Obj, "Obj"); DateTimeAssert.AreEqual(exp.Date, act.Date, "Date");; }
public void DataContractSerializeDeserialize_EmailAddressSerializeObject_AreEqual() { var input = new EmailAddressSerializeObject { Id = 17, Obj = EmailAddressTest.TestStruct, Date = new DateTime(1970, 02, 14), }; var exp = new EmailAddressSerializeObject { Id = 17, Obj = EmailAddressTest.TestStruct, Date = new DateTime(1970, 02, 14), }; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp.Id, act.Id, "Id"); Assert.AreEqual(exp.Obj, act.Obj, "Obj"); Assert.AreEqual(exp.Date, act.Date, "Date"); }
public void DataContractSerializeDeserialize_LocalDateTimeSerializeObject_AreEqual() { var input = new LocalDateTimeSerializeObject { Id = 17, Obj = LocalDateTimeTest.TestStructNoMilliseconds, Date = new DateTime(1970, 02, 14), }; var exp = new LocalDateTimeSerializeObject { Id = 17, Obj = LocalDateTimeTest.TestStructNoMilliseconds, Date = new DateTime(1970, 02, 14), }; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp.Id, act.Id, "Id"); Assert.AreEqual(exp.Obj, act.Obj, "Obj"); Assert.AreEqual(exp.Date, act.Date, "Date"); }
public void DataContractSerializeDeserialize_InternetMediaTypeSerializeObject_AreEqual() { var input = new InternetMediaTypeSerializeObject { Id = 17, Obj = TestStruct, Date = new DateTime(1970, 02, 14), }; var exp = new InternetMediaTypeSerializeObject { Id = 17, Obj = TestStruct, Date = new DateTime(1970, 02, 14), }; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp.Id, act.Id, "Id"); Assert.AreEqual(exp.Obj, act.Obj, "Obj"); Assert.AreEqual(exp.Date, act.Date, "Date"); }
public void DataContractSerializeDeserialize_InternationalBankAccountNumberSerializeObject_AreEqual() { var input = new InternationalBankAccountNumberSerializeObject() { Id = 17, Obj = InternationalBankAccountNumberTest.TestStruct, Date = new DateTime(1970, 02, 14), }; var exp = new InternationalBankAccountNumberSerializeObject() { Id = 17, Obj = InternationalBankAccountNumberTest.TestStruct, Date = new DateTime(1970, 02, 14), }; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp.Id, act.Id, "Id"); Assert.AreEqual(exp.Obj, act.Obj, "Obj"); DateTimeAssert.AreEqual(exp.Date, act.Date, "Date");; }
public void DataContractSerializeDeserialize_EmailAddressSerializeObject_AreEqual() { var input = new EmailAddressCollectionSerializeObject() { Id = 17, Obj = GetTestInstance(), Date = new DateTime(1970, 02, 14), }; var exp = new EmailAddressCollectionSerializeObject() { Id = 17, Obj = GetTestInstance(), Date = new DateTime(1970, 02, 14), }; var act = SerializationTest.DataContractSerializeDeserialize(input); Assert.AreEqual(exp.Id, act.Id, "Id"); CollectionAssert.AreEqual(exp.Obj, act.Obj, "Obj"); DateTimeAssert.AreEqual(exp.Date, act.Date, "Date");; }
public void DataContractSerializeDeserialize_TestStruct_AreEqual() { var act = SerializationTest.DataContractSerializeDeserialize(TestPattern); DebuggerDisplayAssert.HasResult("{t?st*}, SingleOrTrailing, Ordinal", act); }