public void SerializeMobileListWithPrimitiveTypes()
        {
            UnitTestContext context = GetContext();

            var expected = new MobileBindingList <int>();

            expected.Add(1);
            context.Assert.Try(() => MobileFormatter.Serialize(expected));
            context.Assert.Fail();
            context.Complete();
        }
        public void MobileListWithNonBusinessObjectReferenceType()
        {
            UnitTestContext context  = GetContext();
            var             expected = new MobileBindingList <MockNonBusinessObject>();

            expected.Add(new MockNonBusinessObject {
                Member = "xyz"
            });

            context.Assert.Try((Func <object, byte[]>)MobileFormatter.Serialize, expected);
            context.Assert.Fail();
            context.Complete();
        }
Beispiel #3
0
    public void MobileListWithNonBusinessObjectReferenceType()
    {
      UnitTestContext context = GetContext();
      var expected = new MobileBindingList<MockNonBusinessObject>();
      expected.Add(new MockNonBusinessObject { Member = "xyz" });

      context.Assert.Try((Func<object, byte[]>)MobileFormatter.Serialize, expected );
      context.Assert.Fail();
      context.Complete();
    }
Beispiel #4
0
    public void SerializeMobileListWithPrimitiveTypes()
    {
      UnitTestContext context = GetContext();

      var expected = new MobileBindingList<int>();
      expected.Add(1);
      context.Assert.Try(() => MobileFormatter.Serialize(expected));
      context.Assert.Fail();
      context.Complete();
    }