public void SearchComparingNestedInstanceProperties() { var constants = new NestedConstants(); // Verify that nested instance properties in LINQ work var equality = _realm.All <Person>().Where(p => p.Salary == constants.InstanceConstants.SixtyThousandProperty).ToArray(); Assert.That(equality.Length, Is.EqualTo(1)); Assert.That(equality[0].FullName, Is.EqualTo("John Doe")); }
public void SearchComparingNestedInstanceProperties() { var constants = new NestedConstants(); // Verify that nested instance properties in LINQ work var equality = _realm.All<Person>().Where(p => p.Salary == constants.InstanceConstants.SixtyThousandProperty).ToArray(); Assert.That(equality.Length, Is.EqualTo(1)); Assert.That(equality[0].FullName, Is.EqualTo("John Doe")); }