Exemplo n.º 1
0
        public void With_fields_invalid()
        {
            var m1 = new WithFields("F1", 2);
            var m2 = new WithFields("F1", 3);

            ModelAssert.AreEqual(m1, m2);
        }
Exemplo n.º 2
0
        public void With_array_property_invalid_length()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);

            var m31 = new WithArrayProperty(m11, m11);
            var m32 = new WithArrayProperty(m12);

            ModelAssert.AreEqual(m31, m32);
        }
Exemplo n.º 3
0
        public void With_array_property_nullable_entry_valid()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);

            var m31 = new WithArrayProperty(m11, m11, null);
            var m32 = new WithArrayProperty(m12, m12, null);

            ModelAssert.AreEqual(m31, m32);
        }
Exemplo n.º 4
0
        public void With_array_property_mismatch()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);
            var m13 = new WithFields("F2", 2);

            var m31 = new WithArrayProperty(m11, m11);
            var m32 = new WithArrayProperty(m12, m13);

            ModelAssert.AreEqual(m31, m32);
        }
Exemplo n.º 5
0
        public void With_array_property_null_array_invalid()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);

            var m31 = new WithArrayProperty
            {
                Property = null
            };
            var m32 = new WithArrayProperty(m12, m12, null);

            ModelAssert.AreEqual(m31, m32);
        }
        public void With_array_property_mismatch()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);
            var m13 = new WithFields("F2", 2);

            var m31 = new WithArrayProperty(m11, m11);
            var m32 = new WithArrayProperty(m12, m13);

            ModelAssert.AreEqual(m31, m32);
        }
        public void With_array_property_invalid_length()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);

            var m31 = new WithArrayProperty(m11, m11);
            var m32 = new WithArrayProperty(m12);

            ModelAssert.AreEqual(m31, m32);
        }
 public WithNested(WithFields model, Guid unique)
 {
     Model = model;
     Unique = unique;
 }
        public void With_fields_valid()
        {
            var m1 = new WithFields("F1", 2);
            var m2 = new WithFields("F1", 2);

            ModelAssert.AreEqual(m1, m2);
        }
 public void With_fields_nullable_invalid()
 {
     var m1 = new WithFields("F1", 2);
     ModelAssert.AreEqual(m1, null);
 }
        public void With_array_property_null_array_invalid()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);

            var m31 = new WithArrayProperty
                {
                    Property = null
                };
            var m32 = new WithArrayProperty(m12, m12, null);

            ModelAssert.AreEqual(m31,m32);
        }
        public void With_array_property_nullable_entry_valid()
        {
            var m11 = new WithFields("F1", 2);
            var m12 = new WithFields("F1", 2);

            var m31 = new WithArrayProperty(m11, m11,null);
            var m32 = new WithArrayProperty(m12, m12, null);

            ModelAssert.AreEqual(m31, m32);
        }
Exemplo n.º 13
0
 public WithNested(WithFields model, Guid unique)
 {
     Model  = model;
     Unique = unique;
 }
Exemplo n.º 14
0
        public void With_fields_nullable_invalid()
        {
            var m1 = new WithFields("F1", 2);

            ModelAssert.AreEqual(m1, null);
        }