public void ThisMethod_NullArgument_ArgumentNullExceptionThrown()
        {
            // Arrange
            var indexer = new TestCaseIndexer();

            // Action & Assert
            Assert.ThrowsException <ArgumentNullException>(() => indexer[null]);
        }
        public void Current_NotFromTestMethod()
        {
            var indexer = new TestCaseIndexer();

            // Run in TestInitialize, so that current method isn't running in TestMethod.
            try
            {
                var cases = indexer.Current;
            }
            catch (InvalidOperationException)
            {
                // This exception only occurs when Current property is not running in TestMethod.
                _exceptionOccurredInCurrentProperty = true;
            }
        }