protected void ValidateSession(object sessionObject, string repoName) { var session = sessionObject as ISession; Assert.NotNull(session); Assert.AreEqual(repoName, session.RepositoryInfo.Name); } }