public void Create_ThrowsInvalidOperationException() { var bgc = new BoltGraphClient(DriverTestHelper.MockDriverWithConnectionSet().Object); var ex = Record.Exception(() => bgc.Create("value", null)); ex.Should().NotBeNull(); ex.Should().BeOfType <InvalidOperationException>(); ex.Message.Should().Be(BoltGraphClient.NotValidForBolt); }