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")); }
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")); }