public void ExcuteCommandNewTableTest() { string name = "tablename"; command.Name = name; command.ExecuteCmdlet(); AzureStorageTable table = (AzureStorageTable)MockCmdRunTime.OutputPipeline.FirstOrDefault(); Assert.Equal(name, table.Name); }
public void ExcuteCommandNewTableTest() { // v1 test this.tableMock.IsTokenCredential = false; string name = "test"; command.Name = name; command.ExecuteCmdlet(); AzureStorageTable table = (AzureStorageTable)MockCmdRunTime.OutputPipeline.FirstOrDefault(); Assert.AreEqual(name, table.Name); // v2 test this.tableMock.IsTokenCredential = true; name = "test"; this.MockCmdRunTime.ResetPipelines(); command.Name = name; command.ExecuteCmdlet(); table = (AzureStorageTable)MockCmdRunTime.OutputPipeline.FirstOrDefault(); Assert.AreEqual(name, table.Name); }