shadows/framework/src/main/java/org/robolectric/shadows/ShadowToast.java
public static int shownToastCount() {
    ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
    return shadowApplication.getShownToasts().size();
  }
public static int shownToastCount() {
    ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
    return shadowApplication.getShownToasts().size();
  }
Returns the number of {@code Toast} requests that have been made during this test run
or since {@link #reset()} has been called.

@return the number of {@code Toast} requests that have been made during this test run
or since {@link #reset()} has been called.