public void IsVirtual() { // Arrange var mockedDbSet = new Mock <IDbSet <Notification> >(); var context = new MeetMeDbContext(); // Act bool isVirtual = context.GetType().GetProperty("Notifications").GetGetMethod().IsVirtual; // Assert Assert.IsTrue(isVirtual); }
public void IsVirtual() { // Arrange var mockedDbSet = new Mock <IDbSet <CustomUser> >(); var context = new MeetMeDbContext(); // Act bool isVirtual = context.GetType().GetProperty("Comments").GetGetMethod().IsVirtual; // Assert Assert.IsTrue(isVirtual); }