Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
veena-udayabhanu committed Nov 26, 2013
1 parent 3b74561 commit 10e0cda
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Test/ClassLibraryCommon/Table/TableQueryableTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,20 @@ public void MyTestCleanup()
[TestCategory(TenantTypeCategory.DevStore), TestCategory(TenantTypeCategory.DevFabric), TestCategory(TenantTypeCategory.Cloud)]
public void TableQueryableExecuteQueryGeneric()
{
currentTable = tableClient.GetTableReference(GenerateRandomTableName());
currentTable.CreateIfNotExists();
CloudTable table = tableClient.GetTableReference(GenerateRandomTableName());
table.CreateIfNotExists();

BaseEntity entity = new BaseEntity("mypk", "myrk");
TableOperation operation = TableOperation.Insert(entity);
currentTable.Execute(operation);
table.Execute(operation);

IQueryable<BaseEntity> query = currentTable.CreateQuery<BaseEntity>().Where(x => x.PartitionKey == "mypk");
IQueryable<BaseEntity> query = table.CreateQuery<BaseEntity>().Where(x => x.PartitionKey == "mypk");
foreach (BaseEntity ent in query.ToList())
{
Assert.AreEqual("mypk", ent.PartitionKey);
}

IEnumerable<BaseEntity> entities1 = GetEntities<BaseEntity>(currentTable, "mypk");
IEnumerable<BaseEntity> entities1 = GetEntities<BaseEntity>(table, "mypk");
foreach (BaseEntity ent in entities1)
{
Assert.AreEqual("mypk", ent.PartitionKey);
Expand Down

0 comments on commit 10e0cda

Please sign in to comment.