public void TestSaveAsTable() { // arrange mockDataFrameWriterProxy.Setup(m => m.SaveAsTable(It.IsAny <string>())); var dataFrameWriter = new DataFrameWriter(mockDataFrameWriterProxy.Object); const string table = "table"; // Act dataFrameWriter.SaveAsTable(table); // Assert mockDataFrameWriterProxy.Verify(m => m.SaveAsTable(table), Times.Once); }