public void NestedAttributes() { var data = new NestedAttributeData { Data = new AttributeData { Text = "foo", Number = 42, NullableNumber = 13 } }; Assert.IsTrue(Matches(data, nested_text_attribute == "foo")); Assert.IsTrue(Matches(data, nested_number_attribute == "42")); Assert.IsTrue(Matches(data, nested_nullable_number_attribute == "13")); Assert.IsFalse(Matches(data, nested_text_attribute.Exists(false))); Assert.IsFalse(Matches(data, nested_number_attribute > "42")); Assert.IsFalse(Matches(data, nested_nullable_number_attribute != "13")); }
public void NestedAttributes () { var data = new NestedAttributeData { Data = new AttributeData { Text = "foo", Number = 42, NullableNumber = 13 } }; Assert.IsTrue (Matches (data, nested_text_attribute == "foo")); Assert.IsTrue (Matches (data, nested_number_attribute == "42")); Assert.IsTrue (Matches (data, nested_nullable_number_attribute == "13")); Assert.IsFalse (Matches (data, nested_text_attribute.Exists (false))); Assert.IsFalse (Matches (data, nested_number_attribute > "42")); Assert.IsFalse (Matches (data, nested_nullable_number_attribute != "13")); }