Tests.Raven.Client.ContextualListeners.ContextualDocumentStoreListenerTests.When_no_context_Then_should_not_throw C# (CSharp) Method

When_no_context_Then_should_not_throw() private method

private When_no_context_Then_should_not_throw ( ) : void
return void
        public void When_no_context_Then_should_not_throw()
        {
            using (IDocumentSession session = DocumentStore.OpenSession())
            {
                var doc = new Doc {Id = "Doc"};
                session.Store(doc);
                Assert.DoesNotThrow(session.SaveChanges);
            }
        }