Fixed some tests broken by replace command
This commit is contained in:
Родитель
ad8b212529
Коммит
1912c843a0
|
@ -112,14 +112,14 @@ namespace Salesforce.Tooling.APIs.Tests
|
||||||
[Test]
|
[Test]
|
||||||
public async Task DescribeApexClass()
|
public async Task DescribeApexClass()
|
||||||
{
|
{
|
||||||
var traceFlagDescribeResult = await _toolingClient.SObjectDescribe("ApexClassMemberMetadata");
|
var apexClassDescribeResult = await _toolingClient.SObjectDescribe("ApexClass");
|
||||||
Assert.IsNotNull(traceFlagDescribeResult);
|
Assert.IsNotNull(apexClassDescribeResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public async Task QueryApexClass()
|
public async Task QueryApexClass()
|
||||||
{
|
{
|
||||||
const string query = "SELECT Id, NamespacePrefix, Name, ApiVersion, Status, IsValid, BodyCrc, Body, LengthWithoutComments, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, SymbolTable, Metadata, FullName FROM ApexClassMemberMetadata";
|
const string query = "SELECT Id, NamespacePrefix, Name, ApiVersion, Status, IsValid, BodyCrc, Body, LengthWithoutComments, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, SymbolTable FROM ApexClass";
|
||||||
var result = await _toolingClient.Query<dynamic>(query);
|
var result = await _toolingClient.Query<dynamic>(query);
|
||||||
|
|
||||||
Assert.IsNotNull(result);
|
Assert.IsNotNull(result);
|
||||||
|
@ -208,7 +208,6 @@ namespace Salesforce.Tooling.APIs.Tests
|
||||||
result = await _toolingClient.Query<QueryResult<ContainerAsyncRequest>>(query);
|
result = await _toolingClient.Query<QueryResult<ContainerAsyncRequest>>(query);
|
||||||
|
|
||||||
state = result.records[0].State;
|
state = result.records[0].State;
|
||||||
|
|
||||||
Assert.IsNotNull(result);
|
Assert.IsNotNull(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче