Пример #1
0
        public void TestSqlContextCacheTable()
        {
            // arrange
            mockSqlContextProxy.Setup(m => m.CacheTable(It.IsAny <string>()));
            var sqlContext = new SqlContext(new SparkContext("", ""), mockSqlContextProxy.Object);

            // act
            sqlContext.CacheTable("table");

            // assert
            mockSqlContextProxy.Verify(m => m.CacheTable("table"));
        }
Пример #2
0
        public void TestSqlContextCacheTable()
        {
            // arrange
            mockSqlContextProxy.Setup(m => m.CacheTable(It.IsAny<string>()));
            var sqlContext = new SqlContext(new SparkContext("", ""), mockSqlContextProxy.Object);

            // act
            sqlContext.CacheTable("table");

            // assert
            mockSqlContextProxy.Verify(m => m.CacheTable("table"));
        }