Пример #1
0
 public void GetFields_ThrowsExceptionWhenDetectsACycle(Type modelType)
 {
     Assert.Throws <InvalidOperationException>(
         () => FacebookQueryHelper.GetFields(modelType),
         Resources.CircularReferenceNotSupported
         );
 }
 public void GetFields_ReturnsExpectedQuery(Type modelType, string expectedQuery)
 {
     Assert.Equal(expectedQuery, FacebookQueryHelper.GetFields(modelType));
 }